Skip to content

Commit 87ea00a

Browse files
authored
use our setup action (#149)
1 parent 0326e50 commit 87ea00a

3 files changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ jobs:
4040
with:
4141
persist-credentials: false
4242

43+
- name: Preparing Container
44+
uses: pkgforge-dev/anylinux-setup-action@0964f2258d6c93d1391359978dde081fd8b3c6af # v2
45+
4346
- name: Cache dependencies
4447
id: cache-ghostty
4548
uses: actions/cache@v4

bin/bundle-appimage.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ export OUTNAME="Ghostty-${GHOSTTY_VERSION}-${ARCH}.AppImage"
1313
export DESKTOP="./ghostty-${GHOSTTY_VERSION}/zig-out/share/applications/com.mitchellh.ghostty.desktop"
1414
export ICON="./ghostty-${GHOSTTY_VERSION}/zig-out/share/icons/hicolor/256x256/apps/com.mitchellh.ghostty.png"
1515

16-
./quick-sharun ./ghostty-${GHOSTTY_VERSION}/zig-out/bin/ghostty
16+
quick-sharun ./ghostty-${GHOSTTY_VERSION}/zig-out/bin/ghostty
1717
cp -rf ./ghostty-${GHOSTTY_VERSION}/zig-out/share/* ./AppDir/share/
18-
./quick-sharun --make-appimage
18+
quick-sharun --make-appimage
1919

2020
mkdir -p ./dist
2121
mv -v ./*.AppImage* ./dist

bin/setup-env.sh

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,28 +27,18 @@ ARCH="$(uname -m)"
2727
MINISIGN_VERSION="$(get_latest_gh_release 'jedisct1/minisign')"
2828

2929
GH_BASE="https://github.com"
30-
GH_USER_CONTENT="https://raw.githubusercontent.com"
3130

3231
MINISIGN_URL="${GH_BASE}/jedisct1/minisign/releases/download/${MINISIGN_VERSION}/minisign-${MINISIGN_VERSION}-linux.tar.gz"
3332

34-
DEBLOATED_PKGS="${GH_USER_CONTENT}/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
35-
SHARUN="${GH_USER_CONTENT}/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/quick-sharun.sh"
36-
37-
# Install Debloated Pkgs
38-
wget "${DEBLOATED_PKGS}" -O /tmp/get-debloated-pkgs.sh
39-
chmod a+x /tmp/get-debloated-pkgs.sh
40-
sh /tmp/get-debloated-pkgs.sh --add-common --prefer-nano
33+
# Install Debloated Pkgs (get-debloated-pkgs provided by anylinux-setup-action)
34+
get-debloated-pkgs --add-common --prefer-nano
4135

4236
# minisign: https://github.com/jedisct1/minisign
4337
rm -rf /usr/local/bin/minisign
4438
wget "${MINISIGN_URL}" -O /tmp/minisign-linux.tar.gz
4539
tar -xzf /tmp/minisign-linux.tar.gz -C /tmp
4640
mv /tmp/minisign-linux/"${ARCH}"/minisign /usr/local/bin
4741

48-
# Sharun
49-
wget "${SHARUN}" -O quick-sharun
50-
chmod +x quick-sharun
51-
5242
# Cleanup
5343
pacman -Scc --noconfirm
5444

0 commit comments

Comments
 (0)