disable updater on dev builds
This commit is contained in:
parent
475713b4a7
commit
1ac2ac61bc
2 changed files with 6 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ build-application:
|
|||
libwayland-dev:arm64 \
|
||||
libxxf86vm-dev:arm64
|
||||
script:
|
||||
- xgo --targets=$ARCH --out=otdr-reporter .
|
||||
- xgo --targets=$ARCH --out=otdr-reporter --ldflags="-s -w -X 'main.UpdaterEnabled=true'" .
|
||||
- cp -v /build/* .
|
||||
artifacts:
|
||||
paths:
|
||||
|
|
|
|||
6
main.go
6
main.go
|
|
@ -33,6 +33,8 @@ import (
|
|||
|
||||
var events []pdf.EventRow
|
||||
|
||||
var UpdaterEnabled = "false"
|
||||
|
||||
func renderPlot(sor *gotdr.OtdrRawData, mainWindow *fyne.Window) []byte {
|
||||
p := plot.New()
|
||||
p.X.Label.Text = sor.FixedParams.Unit
|
||||
|
|
@ -342,7 +344,9 @@ func main() {
|
|||
mainWindow.SetContent(mainContainer)
|
||||
mainWindow.Resize(fyne.NewSize(700, 500))
|
||||
|
||||
update.CheckForUpdate(&application, &mainWindow)
|
||||
if UpdaterEnabled == "true" {
|
||||
update.CheckForUpdate(&application, &mainWindow)
|
||||
}
|
||||
|
||||
mainWindow.ShowAndRun()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue