Skip to content

Commit fe80f35

Browse files
committed
Update to include flatpak use
1 parent 2f716d0 commit fe80f35

File tree

1 file changed

+23
-5
lines changed

1 file changed

+23
-5
lines changed

itch.md

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,14 @@
44

55
## vars
66
```
7+
APPNAME="itch"
78
ITCHVERSION=1.27.0
89
ITCHURL="https://broth.itch.zone/itch-setup/linux-amd64/${ITCHVERSION}/archive/default"
910
ITCHHOME=${HOME}/.itch
1011
ITCHBIN=${ITCHHOME}/itch
1112
```
1213

13-
## install
14+
## user-install
1415
```sh interactive
1516
curl -L -o /tmp/itch-setup.zip ${ITCHURL}
1617
unzip /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
2427
else
25-
${ITCHBIN}
28+
echo "${APPNAME} is not installed."
2629
fi
2730
```
2831

29-
## check
32+
## user-run
33+
```sh
34+
${ITCHBIN}
35+
```
36+
37+
## user-check
3038
```sh
3139
[ -x ${ITCHBIN} ]
3240
```
@@ -36,3 +44,13 @@ fi
3644
flatpak 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+

0 commit comments

Comments
 (0)