Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/softwareupdate #38

Merged
merged 15 commits into from
Apr 1, 2020
Merged

Feature/softwareupdate #38

merged 15 commits into from
Apr 1, 2020

Conversation

zehnm
Copy link
Member

@zehnm zehnm commented Apr 1, 2020

Initial implementation of the remote app update script according to the described solution in #35.

The update script has several precautions built in to make the update process as stable and safe as possible. The running app is only terminated and replaced after all checks succeed. The downside is that the splash screen is barely visible and there's no immediate feedback after starting the update from within the app. In other words: there's no fancy user interface experience yet.
This will be addressed in a separate task since it involves changing the update process and interactions between the app and the update script(s).

Further changes:

  • moved app location from /usr/bin/yio-remote to /opt/yio/app
  • split app directory structure and moved:
    • script sub-folder to /opt/yio/scripts
    • plugins sub-folder to /opt/yio/app-plugins
    • www sub-folder to /opt/yio/web-configurator

This closes #35

martonborzak and others added 15 commits February 16, 2020 20:57
Initial app-udpate script with new directory layout with separated
directories for app, plugins, scripts, splash screens, web-configurator.

Relates to #35
The wpa_supplicant configuration file in /boot might have been removed.
In this case the wificopy marker no longer applies and needs to be removed.
Compare wpa_supplicant.conf in boot with current configuration file and only
process it if different.

This closes #37
A marker file is *.version file containing meta data of an update:
- Update archive
- Version
- Download URL

Each property is on a separate line.
Key values are separated  by  a colon embedded in tabs.
@zehnm zehnm added the enhancement New feature or request label Apr 1, 2020
@zehnm zehnm requested a review from martonborzak April 1, 2020 18:34
@martonborzak martonborzak merged commit 935eed7 into develop Apr 1, 2020
@martonborzak martonborzak deleted the feature/softwareupdate branch April 1, 2020 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remote App Update script
2 participants