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

installer: uninstall old Solid version before installation #17

Merged
merged 2 commits into from
Jun 19, 2024

Conversation

megahirt
Copy link
Contributor

Fixes #12

This updates the installer script to check for a prior version of Solid and uninstall that before proceeding with the installation. This fixes some bugs related to upgraded dependencies that are not cleaned up on new installs.

The uninstall script / detection was taken from https://stackoverflow.com/a/2099805

@megahirt megahirt self-assigned this Jun 18, 2024
@megahirt megahirt requested a review from josephmyers June 18, 2024 06:39
@josephmyers
Copy link
Collaborator

I think we should enable the GHA steps to create/sign the installer even for branches. It's a little inconvenient to have to pull this branch and build the installer locally, and having the installer as an artifact should be useful for future cases, as well. Thoughts?

@megahirt
Copy link
Contributor Author

I think we should enable the GHA steps to create/sign the installer even for branches. It's a little inconvenient to have to pull this branch and build the installer locally, and having the installer as an artifact should be useful for future cases, as well. Thoughts?

@josephmyers so the idea is that creating/signing an installer is only for when we decide to release at a certain commit via a tag. Creating installers should be left up to CI almost exclusively. The only time a dev should make an installer locally would be if they are making changes to the installer itself.

Theoretically a tag can be created anywhere, including on a branch. In practice, the tag vX.X.X should be done on a commit on main, not on a feature branch. This same action also produces a draft release, so it really is a publish action.

If for some reason we want to produce an installer to give to someone without publishing, we create a tagged version and then leave the release as draft, and then send them a link to the installer artifact.

@josephmyers
Copy link
Collaborator

I'm fine with that. At the very least I'm emphasizing that I don't know how to test this branch without getting iscc working on my machine and building the installer locally, which I won't have time for until tomorrow. Maybe I'm missing something obvious?

@megahirt
Copy link
Contributor Author

I'm fine with that. At the very least I'm emphasizing that I don't know how to test this branch without getting iscc working on my machine and building the installer locally, which I won't have time for until tomorrow. Maybe I'm missing something obvious?

Ah yes, I see your point. I should have also said that I tested this locally with my changes and went through installing / uninstalling a number of times to get this working.

For CI, we can make a release with a tag and then test the installer out that way.

@megahirt megahirt merged commit 3b84b92 into main Jun 19, 2024
4 checks passed
@megahirt megahirt deleted the feat/uninstallBeforeInstall branch June 19, 2024 08:29
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.

bug: sometimes old version of Solid must be uninstalled before installing new version
2 participants