Skip to content

Commit 7c88643

Browse files
authored
Check the folder content in new version of the agent on macos (#797)
* disable pushing autoupdate file on s3 for testing purposes also set prerelease: true for the github release, so that we can perform tests * we check if the bundle is already there * fix typo * Revert "disable pushing autoupdate file on s3 for testing purposes" This reverts commit 61373da.
1 parent c9c688d commit 7c88643

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ func oldInstallExists() bool {
453453
if binIsOld {
454454
return false
455455
}
456-
return oldAgentPath.Exist()
456+
return oldAgentPath.Join("ArduinoCreateAgent.app").Exist()
457457
}
458458

459459
// printDialog will print a GUI error dialog on macos

Diff for: updater/updater_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func checkForUpdates(currentVersion string, updateURL string, cmdName string) (s
5959
if currentAppPath.Ext() != ".app" {
6060
return "", fmt.Errorf("could not find app root in %s", executablePath)
6161
}
62-
oldAppPath := currentAppPath.Parent().Join("ArdiunoCreateAgent.old.app")
62+
oldAppPath := currentAppPath.Parent().Join("ArduinoCreateAgent.old.app")
6363
if oldAppPath.Exist() {
6464
return "", fmt.Errorf("temp app already exists: %s, cannot update", oldAppPath)
6565
}

0 commit comments

Comments
 (0)