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

Fix UI update button #1349

Merged
merged 2 commits into from
Sep 4, 2022
Merged

Fix UI update button #1349

merged 2 commits into from
Sep 4, 2022

Conversation

0pcom
Copy link
Collaborator

@0pcom 0pcom commented Sep 4, 2022

The purpose of this PR i to decouple the process which updates the skywire package installation from the running visor process.
With v1.1.0, the update may succeed in terms of the visor restarting on the new version; however, at the moment the process is restarted dpkg has not finished installing the package and was interrupted from doing so. This leaves the system and installation in an unclean state and will require manual intervention from users to fix it.

I have also defined UpdateCommand functions for windows and mac without actually implementing any update for these.

Did you run make format && make check?
yes

Depends:

Fixes unclean update when UI button is clicked

Changes:

  • Add os-specific UpdateCommand functions to pkg/skyenv.
  • Remove hardcoded update commands from skycoin/dmsg/pkg/dmsgpty/ui

How to test this PR:

click the update button in the UI.

robust testing is not possible at the moment because updating assumes that you have a package-based installation and the repository configured via the skybian package.

The skywire-install.service is itself working and currently used in the new skybian images
this service and the repository configuration are proided by the skybian package in the apt repo at deb.skywire.skycoin.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant