diff --git a/build.properties b/build.properties index 82dfc46..fab619c 100644 --- a/build.properties +++ b/build.properties @@ -5,8 +5,8 @@ core.dir = ../portapps app = cryptomator app.name = Cryptomator app.type = msi -app.version = 1.15.2 -app.release = 15 +app.version = 1.19.3 +app.release = 16 app.homepage = https://cryptomator.org/ # Portable app @@ -18,7 +18,7 @@ papp.url = https://github.com/portapps/${papp.id} papp.folder = app # MSI -msi.app = SourceDir +msi.app = SourceDir/PFiles64 # Official artifacts atf.id = Cryptomator diff --git a/main.go b/main.go index 73f7d9e..9938476 100644 --- a/main.go +++ b/main.go @@ -58,6 +58,9 @@ func main() { if err := utl.ReplaceByPrefix(filepath.Join(app.AppPath, "app", "Cryptomator.cfg"), "java-options=-Dcryptomator.p12Path=", "java-options=-Dcryptomator.p12Path="+p12Path); err != nil { log.Fatal().Err(err).Msg("Cannot set p12Path") } + if err := utl.ReplaceByPrefix(filepath.Join(app.AppPath, "app", "Cryptomator.cfg"), "java-options=-Dcryptomator.disableUpdateCheck=", "java-options=-Dcryptomator.disableUpdateCheck=true"); err != nil { + log.Fatal().Err(err).Msg("Cannot set disableUpdateCheck") + } // Create folders _ = utl.CreateFolder(filepath.Join(app.DataPath, "log")) @@ -75,7 +78,6 @@ func main() { } log.Info().Interface("settings", jsonMapSettings).Msg("Current settings") - jsonMapSettings["askedForUpdateCheck"] = false jsonMapSettings["checkForUpdatesEnabled"] = false log.Info().Interface("settings", jsonMapSettings).Msg("New settings") @@ -90,7 +92,6 @@ func main() { } else { log.Info().Msg("Initializing settings...") if err = os.WriteFile(settingsFile, []byte(`{ - "askedForUpdateCheck": false, "checkForUpdatesEnabled": false }`), 0644); err != nil { log.Error().Err(err).Msg("Write settings")