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

Migrate to Velopack & Github Action #2616

Open
wants to merge 71 commits into
base: dev
Choose a base branch
from
Open

Migrate to Velopack & Github Action #2616

wants to merge 71 commits into from

Conversation

taooceros
Copy link
Member

@taooceros taooceros commented Mar 24, 2024

Velopack (https://velopack.io/) is the successor of Cloud.Squirrel (https://github.com/clowd/Clowd.Squirrel)

Several change in this pr

  1. Remove shortcut related function https://docs.velopack.io/integrating/shortcuts
  2. Implement a custom restart script which doesn't depend on the updater (which should not be the use case anyway). This allows restart be called at dev environment (breaking change).
  3. Create the portable data folder if the package is not inside %LocalAppData% as velopack will pack the portable version for us, which doesn't allow us to modify (easily) to insert a custom folder.
  4. The post_build script is modified to add information about channel. Prerelease repo will have win-x64-prerelease channel, while the main repo will have win-x64-stable channel. https://docs.velopack.io/packaging/channels
  5. It also contains an experimental github action CI, which has a faster build time and larger concurrency allowance.

Tested:

  • The build file size should be similar size
  • The protable file should create UserData folder
  • Things should work

Futher Consideration:

  • Cleanup post_build script. Build Portable is no longer needed as that will be handled by vpk pack
  • Implement the logic of switching channel (maybe can delay to future). With that and once this pr is merged, we can officially test whether the upgrade process work. I will also create one pr stemmed from master to see how the upgrade from squirrel will behave.

Note: Maybe we want to squash so revert is easier?

@taooceros taooceros changed the title Velopack Migrate to Velopack Mar 24, 2024

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@taooceros taooceros force-pushed the velopack branch 2 times, most recently from 302ffcb to 6c3bcdc Compare March 29, 2024 17:57

This comment has been minimized.

@VictoriousRaptor
Copy link
Contributor

vpk: D:\a\Flow.Launcher\Flow.Launcher\Scripts\post_build.ps1:126
Line |
126 | vpk pack --packVersion $version --packDir $input --packId FlowLau …
| ~~~
| The term '~/.dotnet/tools/vpk.exe' is not recognized as a name of a cmdlet, function, script file, or executable
| program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
| again.

Looks like something's broken but I don't have any idea.

@taooceros
Copy link
Member Author

vpk: D:\a\Flow.Launcher\Flow.Launcher\Scripts\post_build.ps1:126
Line |
126 | vpk pack --packVersion $version --packDir $input --packId FlowLau …
| ~~~
| The term '~/.dotnet/tools/vpk.exe' is not recognized as a name of a cmdlet, function, script file, or executable
| program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
| again.

Looks like something's broken but I don't have any idea.

Previously the vpk installation takes 30s, so I add a cache, but weird, it should at least run the install🤔

@jjw24 jjw24 marked this pull request as draft May 22, 2024 03:28
@taooceros taooceros marked this pull request as ready for review May 25, 2024 23:39
@taooceros
Copy link
Member Author

@JohnTheGr8 maybe let's get this in first. I think handling the conflict in .net 8 will be easier.

@taooceros taooceros changed the title Migrate to Velopack Migrate to Velopack & Github Action May 25, 2024
@jjw24 jjw24 enabled auto-merge (squash) May 25, 2024 23:57
@jjw24 jjw24 added the review in progress Indicates that a review is in progress for this PR label May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review in progress Indicates that a review is in progress for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants