Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
5 changes: 3 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand All @@ -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")

Expand All @@ -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")
Expand Down