-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
[bugfix-627] build BSM with deb and flatpak for linux #629
Conversation
a44f503
to
74c2d17
Compare
I will review the #586 tomorow to merge it before this one |
@silentrald is it relevant to add more than the |
@Zagrios I think some In Arch Linux's case, we have a different package manager I think same is true with Fedora that it would prefer to install So building it with different targets would be best, compatibility wise. The only question now is that, is there any drawback that you probably see into building it into different targets? Except for the build time at least. |
b821e81
to
7e8c982
Compare
docs/wiki/Linux.md
Outdated
## Wine Install [Optional] | ||
|
||
[Wine](https://www.winehq.org/) is a tool to run windows application under Linux. BSManager uses to run [BSIPA](https://nike4613.github.io/BeatSaber-IPA-Reloaded/) so that you can play Beat Saber with mods. You can install `wine` depending on your package manager. If you don't install it, this will just fallback to using the `wine` executable found in your _Proton Folder_. |
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.
Is this section still required now that 586 gets wine from the Proton install?
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.
Yep, just forgot to update, should be in commit 38335f1
38335f1
to
f5a7fcc
Compare
@silentrald is this PR ready ? |
@Zagrios might get a commit flatpak by today. Since it's universal, do you think we need to drop support on any installer or leave them as is so users can still have a decision of what to install? |
@silentrald I think we might keep at least the |
@Insprill can I get you opinion as well, since the AUR build would benefit with What I'm thinking right now is to just ship it with
This should also automate all the protocol for deep linking so that you don't have to manually create it. Just check if one-click and launch shortcuts work perfectly with the AUR build. |
I'd be fine dropping the pacman package. Afaik we can't really customize it that much, and anyone on Arch is going to use the AUR anyway. The AUR package(s) will either be built from source where this doesn't matter at all or we can simply extract the |
f5a7fcc
to
6c3531f
Compare
Added flatpak and dropped rpm and pacman. I've already tested the github action build release and it should be working, you can verify this from my fork https://github.com/silentrald/bs-manager/actions/runs/11752857569 @Zagrios Also as a side tangent as well, if its ok for both me and @Insprill to be added in the README.md file for the credits with the linux contribution? |
docs/wiki/Linux.md
Outdated
You are required to have `flatpak` installed your system. After installing that, download the `.flatpak` file in the releases and run the following command: | ||
|
||
```bash | ||
flatpak install ./bsmanager.flatpak |
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.
Potential change to avoid permission issues:
flatpak install --user ./bsmanager.flatpak
docs/wiki/Linux.md
Outdated
|
||
### Universal (flatpak) | ||
|
||
You are required to have `flatpak` installed your system. After installing that, download the `.flatpak` file in the releases and run the following command: |
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.
General idiot-proofing the instructions:
You are required to have flatpak
installed your system, if it is not installed then do so using your system's package manager ("sudo apt install flatpak" for Ubuntu, or "sudo pacman -S flatpak" for Arch). After installing, download the .flatpak
file from the releases, CD to the download location, and run the following command:
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.
Is there really a case where someone wants to use the flatpak instead of the AUR package / deb, and they don't have it installed, and don't know how to install it? I could be wrong here, but it seems redundant to me.
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.
Yeah, I think other distro's should be listed in the here like Fedora and NixOS which isn't Debian or AUR supported flatpak website https://flatpak.org/setup/ which should guide any installation. This should also avoid confusion with the main installers that are supported.
Man I may be crazy but I am testing that deb app there just for fun Thank you for making it work on linux ❤️ Edit: I tried adding mods to 1.38, the download itself of the version worked, but downloading the mods doesn´t. Hmm |
Of course 👌 Add your names to the Readme in this PR 😉 |
@Zagrios Thank you, will create in the next commit. Although I'm still having problems with the flatpak build though, I confirmed with @LiamillionSS that you can run the flatpak of BSM but you can't run any BS version because of some flatpak sandboxing rules. Update: |
126aa38
to
d43f3f5
Compare
@silentrald I saw your update message. But yeah if we can't have proper a working solution with Flatpak, we can first release only the |
d43f3f5
to
ab48edb
Compare
@silentrald I've pushed a small change to be able to package and publish on Windows. But I've downloaded the build artifact from your repo action, and I get this error when I try to open BSM after installing the Flatpak: I couldn't launch the |
What was your installation process/steps? Did you follow the installation guide in the Linux.md file in this commit as well?
You could do a
but the dpkg install should automatically overwrite the files on |
@silentrald 2024-11-19.20-21-22.mp4For the
2024-11-19.20-40-15.mp4 |
- updated flatpak installation - moved deb and AUR above flatpak so users with appropriate distros will install those first - idiot-proofing on how to install flatpak on different distros
moved all launching logic to the LinuxService
handled issue with write only directory with bs-versions.json
…on in README file
* created wrapper calls for spawn and exec for all os support * refactored names for isProcessRunning, getProcessId, and isSteamRunning
9f1c37e
to
5721891
Compare
@Zagrios got every actions on the green. Everything should work as expected now, please retest the mods installation and game launching for both linux and windows. Build versions (nsis, deb and flatpak) needs to be verified as well ig. So that if there are any issues encountered, I can fix them immediately. |
|
@Zagrios The keyring seems to be a system thing with the user either needs to login or disable it from their machine. Ive also checked on electron-builder configs, seems theres nothing there and also in apt/dpkg docs doesn't seem to have anything relating to this. So probably safe to ignore this. |
@silentrald Okay, that's fine for me 👌 |
@Zagrios got it. Release Linux should be this one https://github.com/silentrald/bs-manager/actions/runs/12021117904 |
This is related to permissions. I've already added that in the default but you could try to reset the permissions using FlatSeal. When you reset it you should see
Yeah could replicate this, Should be available in https://github.com/silentrald/bs-manager/actions/runs/12075659299 |
2e4ef09
to
4afad63
Compare
|
@silentrald Great news, everything seems to work! 🎉 |
@Zagrios confirmed 👌 |
Merging 🚀 🚀 |
Closes #627, Closes #468
NOTES
npm run publish:linux
and it should work on the ubuntu-latest