File tree Expand file tree Collapse file tree 1 file changed +23
-5
lines changed
Expand file tree Collapse file tree 1 file changed +23
-5
lines changed Original file line number Diff line number Diff line change 44
55## vars
66```
7+ APPNAME="itch"
78ITCHVERSION=1.27.0
89ITCHURL="https://broth.itch.zone/itch-setup/linux-amd64/${ITCHVERSION}/archive/default"
910ITCHHOME=${HOME}/.itch
1011ITCHBIN=${ITCHHOME}/itch
1112```
1213
13- ## install
14+ ## user- install
1415``` sh interactive
1516curl -L -o /tmp/itch-setup.zip ${ITCHURL}
1617unzip /tmp/itch-setup.zip -d /tmp
@@ -19,14 +20,21 @@ unzip /tmp/itch-setup.zip -d /tmp
1920
2021## default alias run-desktop
2122``` sh
22- if ! apps itch check; then
23- apps itch install
23+ if apps itch check user; then
24+ apps itch run user
25+ elif apps itch check flatpak; then
26+ apps itch run flatpak
2427else
25- ${ITCHBIN}
28+ echo " ${APPNAME} is not installed. "
2629fi
2730```
2831
29- ## check
32+ ## user-run
33+ ``` sh
34+ ${ITCHBIN}
35+ ```
36+
37+ ## user-check
3038``` sh
3139[ -x ${ITCHBIN} ]
3240```
3644flatpak install -y flathub io.itch.itch
3745```
3846
47+ ## flatpak-run
48+ ``` sh
49+ flatpak run io.itch.itch
50+ ```
51+
52+ ## flatpak-check
53+ ``` sh
54+ flatpak info io.itch.itch > /dev/null
55+ ```
56+
You can’t perform that action at this time.
0 commit comments