Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Here's the PR for the windows installer. I tested on a fork and the autoupdate works as expected.
Prerequisites
For Building MSI and update.txt
run
.\windows_installer\build_installer.ps1 -ai_path <path-to-advanced-installer> -version <symantic-version>
for me it looks like
.\windows_installer\build_installer.ps1 -ai_path "C:\Program Files (x86)\Caphyon\Advanced Installer 20.9.1\bin\x86\AdvancedInstaller.com" -version 1.0.0
This will create the MSI at
.\windows_installer\shark_studio-SetupFiles\shark_studio.msi
and the updater at.\windows_installer\shark_updater-SetupFiles\shark_updater.msi
Add these binaries to the nightly release. Nothing else has to be done because the updater will always point to whatever is labelled the latest stable (non-prerelease) version.
For Building the Beta (Nightly) version
Run the aforementioned command with the
-beta
flag.This will create the MSI at
.\windows_installer\shark_studio-SetupFiles\shark_studio_beta.msi
and the updater at.\windows_installer\shark_updater-SetupFiles\shark_updater_beta.msi
Add these to the nightly build so users have access to older nightly versions. Also add these to a new release tag called
latest-nightly
. All nightly builds will update to whatever binaries are published under thelatest-nightly
tag.Concerns
The setup is somewhat funny because there exists state inside the aip files. I will create a google doc explaining this better.