-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
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
osu-lazer{,-bin}: 2024.817.0 -> 2024.906.1 #340125
Conversation
@thiagokokada @stepbrobd Do you think we should hold this package back until there's a new release to test the updater, or should we risk the potential breakage and merge it? Best would testing the updater now but I'm not sure how to do that when there are no newer releases. |
I assumed that the change from Squirrel to Velopack would lead to at least one hotfix being pushed to fix bugs caused by it, and so far I was able to track:
So we're pretty much guaranteed a |
It is highly unlikely that the updater could mess the files in |
Good to know we can expect a few hotfixes soon, thanks for linking those P0 issues!
I know that velopack (or anything other than nix builders) can't write to |
Could we wrap the program and set Edit: Instead of wrapping the program, patching the desktop file would be a better approach: |
Relavent: ppy/osu#15642 |
158b7df
to
3295db8
Compare
Just to clarify, |
cc @caesay : We have our own flag, but in general, how does the updater handle unpacked AppImages (flatpak/etc)? Does it no-op if it detects that? |
@stepbrobd Is there a specific reason patching the desktop file is better other than less code? Some people (including myself) don't use desktop files and just run the binary via rofi/dmenu/terminal. Also thanks for confirming |
47fc3d5
to
c7c712f
Compare
@smoogipoo to answer your question, to disable velopack you should NOT call VelopackApp builder functions, which assume updates are handled by velopack. I assume you can check for the existance of your custom flag and then conditionally call it. Velopack also does not support updating extracted AppImage applications on Linux. |
. ${makeWrapper}/nix-support/setup-hook | ||
mv -v $out/bin/${pname} $out/bin/osu! | ||
wrapProgram $out/bin/osu! \ | ||
--set OSU_EXTERNAL_UPDATE_PROVIDER 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b87dc81
to
4111bbf
Compare
Result of 2 packages built:
|
Do we need to set the environment variable for Darwin systems as well? I did some digging and this is what I have (not tested):
Ref: https://superuser.com/questions/476752/setting-environment-variables-in-os-x-for-gui-applications Update: The patch can be applied to Info.plist no problem but osu can't launch after the modification with the following error:
I don't know how to approach this |
I think you can ignore Darwin for now, but if you want to try maybe we can wrap the binary like we do in Linux? |
Result of 1 package built:
|
Description of changes
Closes #340082.
Release: https://github.com/ppy/osu/releases/tag/2024.906.1
osu! migrated from squirrel to velopack, which offers auto update on linux, I'll see if it will cause any issue on nix, drafting for now.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.