Skip to content

Rewrite the update logic to download and replace the app bundle #737

Closed
@umbynos

Description

@umbynos

Rewrite the update logic (inside the GO executable) for macOS. This new logic will:

  1. download the zipped bundle inside an OS temporary folder
  2. unpack it inside an OS temporary folder
  3. rename the current bundle to ArduinoCreateAgent-old.app
  4. copy the new bundle from the temporary folder into the Applications folder
  5. run the new agent (that has just been copied)
  6. trash or delete ArduinoCreateAgent-old.app
  7. exit the old executable (that now is running in memory only)

This is dependent from:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions