Skip to content

Conversation

@smoogipoo
Copy link
Contributor

@smoogipoo smoogipoo commented Oct 10, 2024

RFC. Feel free to close this PR if it's not going in the direction you want.

It turns out that the new AppImage runtime does not play nice with an external tool called AppImageLauncher, which simply doesn't seem to support the type-2 runtime: AppImage/type2-runtime#12

Resulting in many projects experiencing issues:

We've tried zstd (new default) and zlib, and the problem can't be resolved by changing the compressor - AppImageLauncher is simply incompatible with the type-2 runtime.

Velopack switched to type-2 upon our request, because we wanted to use zstd compression. This was my mistake, because we were actually using zlib. The PRs involved were:

This PR partially reverts the above:

  • Changed default compressor xz, the previous default. The idea here is to revert to what was known to work well for Velopack, but I can change to gzip upon rqeuest.
  • Added back xz compressor args, as per previous implementation, and which are good defaults according to AppImageKit. I'm not sure what to do about the Windows path here, but it might be fine not specifying any args as this is what was originally there. Of note, 128K is the default block size [1] [2]
  • Retained the custom compressor arg. We will be using gzip.

I have tested both gzip and xz compressed apps to run, however I have not tested in conjunction with AppImageLauncher.

These args were also the previous default for velopack, pre-type2
runtime + zstd.
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

Attention: Patch coverage is 15.38462% with 11 lines in your changes missing coverage. Please review.

Project coverage is 46.13%. Comparing base (892822c) to head (4027679).
Report is 5 commits behind head on develop.

Files with missing lines Patch % Lines
src/vpk/Velopack.Packaging.Unix/AppImageTool.cs 11.11% 7 Missing and 1 partial ⚠️
src/vpk/Velopack.Packaging/HelperFile.cs 33.33% 2 Missing ⚠️
src/vpk/Velopack.Vpk/Commands/LinuxPackCommand.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #257      +/-   ##
===========================================
- Coverage    47.36%   46.13%   -1.24%     
===========================================
  Files          220      220              
  Lines        12939    12946       +7     
  Branches      1225     1226       +1     
===========================================
- Hits          6128     5972     -156     
- Misses        6497     6666     +169     
+ Partials       314      308       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@smoogipoo
Copy link
Contributor Author

Anecdotal evidence from one of our users previously struggling with AppImageLauncher, saying it now works: https://discord.com/channels/188630481301012481/1097318920991559880/1293955248532094986

@caesay caesay merged commit 7719c71 into velopack:develop Oct 10, 2024
smoogipoo added a commit to smoogipoo/osu-deploy that referenced this pull request Oct 10, 2024
velopack/velopack#257 has been merged in so the
custom package is no longer required.
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.

2 participants