-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add install scripts (Flatpak) #471
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
Changes from all commits
660d8e1
1e6d9da
8509ee7
e1b112c
5e2dde4
86db3d5
07e2813
b13c785
cb61217
e999249
ed53bcc
3bd54f1
e398388
70a8b69
4aefb3f
3410450
2338cd9
f322579
b0e5954
3786d78
303df90
ae09bd7
83cd771
41cf2e5
f2800a3
0a98b54
d222c46
f81caed
64d4cc0
0930751
3d92884
57939c3
94e2abc
6afc241
5b33892
f5f55c1
a74c64d
8005d63
ed51c99
002d89f
b1ff426
3c7657d
2332f91
6fc975f
3bb3b5c
557c6dc
878f991
81f55df
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,17 +104,24 @@ Flatpak Package | |
| :alt: GitHub issues by-label | ||
|
|
||
| #. Install `Flatpak <https://flatpak.org/setup/>`_ as required. | ||
| #. Download ``sunshine.flatpak`` and run the following code. | ||
| #. Download ``sunshine_{arch}.flatpak`` and run the following code. | ||
|
|
||
| .. Note:: Be sure to replace ``{arch}`` with the architecture for your operating system. | ||
|
|
||
| System level (recommended) | ||
| .. code-block:: bash | ||
|
|
||
| flatpak install --system sunshine.flatpak | ||
| flatpak install --system ./sunshine_{arch}.flatpak | ||
|
|
||
| User level | ||
| .. code-block:: bash | ||
|
|
||
| flatpak install --user sunshine.flatpak | ||
| flatpak install --user ./sunshine_{arch}.flatpak | ||
|
|
||
| Additional installation (required) | ||
| .. code-block:: bash | ||
|
|
||
| flatpak run --command=additional-install.sh dev.lizardbyte.sunshine | ||
|
|
||
| Start: | ||
| X11 and NVFBC capture (X11 Only) | ||
|
|
@@ -130,7 +137,8 @@ Start: | |
| Uninstall: | ||
| .. code-block:: bash | ||
|
|
||
| flatpak uninstall --delete-data sunshine.flatpak | ||
| flatpak run --command=remove-additional-install.sh dev.lizardbyte.sunshine | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you agree to rename the scripts, change the name here as well. |
||
| flatpak uninstall --delete-data dev.lizardbyte.sunshine | ||
|
|
||
| RPM Package | ||
| ^^^^^^^^^^^ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| #!/bin/sh | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we just rename to |
||
|
|
||
| # User Service | ||
| mkdir -p ~/.config/systemd/user | ||
| cp /app/share/sunshine/systemd/user/sunshine.service $HOME/.config/systemd/user/sunshine.service | ||
| echo Sunshine User Service has been installed. | ||
| echo Use [systemctl --user enable sunshine] once to autostart Sunshine on login. | ||
|
|
||
| # Udev rule and input group | ||
| UDEV=$(cat /app/share/sunshine/udev/rules.d/85-sunshine.rules) | ||
| echo Configuring mouse permission. | ||
| flatpak-spawn --host pkexec sh -c "usermod -a -G input $USER && echo '$UDEV' > /etc/udev/rules.d/85-sunshine.rules" | ||
| echo Restart computer for mouse permission to take effect. | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| #!/bin/sh | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can we just rename to |
||
|
|
||
| # User Service | ||
| systemctl --user stop sunshine | ||
| rm $HOME/.config/systemd/user/sunshine.service | ||
| systemctl --user daemon-reload | ||
| echo Sunshine User Service has been removed. | ||
|
|
||
| # Udev rule and input group | ||
| flatpak-spawn --host pkexec sh -c "gpasswd -d $USER input && rm /etc/udev/rules.d/85-sunshine.rules" | ||
| echo Mouse permission removed. Restart computer to take effect. | ||
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.
Add this code to each sub section (system and user level) instead of making a new sub section.
And if you agree to rename the scripts, change the name here as well.