Skip to content

Commit 8de0e1d

Browse files
authored
simplify CI, use better fix for locale issue (#19)
1 parent f72c6b2 commit 8de0e1d

File tree

4 files changed

+41
-79
lines changed

4 files changed

+41
-79
lines changed

.github/workflows/blank.yml

Lines changed: 37 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ concurrency:
44
cancel-in-progress: true
55
on:
66
schedule:
7-
- cron: "0 21 * * 0"
7+
- cron: "0 7 1/14 * *"
88
workflow_dispatch:
99

1010
jobs:
@@ -22,61 +22,46 @@ jobs:
2222
arch: aarch64
2323
container: ghcr.io/pkgforge-dev/archlinux:latest
2424
steps:
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v4
2626

27-
- name: Get dependencies
28-
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
27+
- name: Get dependencies
28+
run: chmod +x ./get-dependencies.sh && ./get-dependencies.sh
2929

30-
- name: Make AppImage
31-
run: chmod +x ./*-appimage.sh && ./*-appimage.sh
30+
- name: Make AppImage
31+
run: chmod +x ./*-appimage.sh && ./*-appimage.sh
3232

33-
- name: Upload artifact
34-
uses: actions/[email protected]
35-
with:
36-
name: AppImage-${{ matrix.arch }}
37-
path: "dist"
38-
39-
- name: Upload version file
40-
uses: actions/[email protected]
41-
with:
42-
name: version
43-
path: ~/version
44-
overwrite: true
33+
- name: Upload artifact
34+
uses: actions/[email protected]
35+
with:
36+
name: AppImage-${{ matrix.arch }}
37+
path: dist
4538

4639
release:
47-
if: ${{ github.ref_name == 'main' }}
48-
needs: [build]
49-
permissions: write-all
50-
runs-on: ubuntu-latest
51-
52-
steps:
53-
- uses: actions/[email protected]
54-
with:
55-
name: AppImage-x86_64
56-
57-
- uses: actions/[email protected]
58-
with:
59-
name: AppImage-aarch64
60-
61-
- uses: actions/[email protected]
62-
with:
63-
name: version
40+
if: ${{ github.ref_name == 'main' }}
41+
needs: [build]
42+
permissions: write-all
43+
runs-on: ubuntu-latest
44+
steps:
45+
- uses: actions/[email protected]
46+
with:
47+
pattern: AppImage-*
48+
merge-multiple: true
6449

65-
- name: Read version and Get date
66-
run: |
67-
echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
68-
echo "DATE=$(date +'%Y-%m-%d_%s')" >> "$GITHUB_ENV"
50+
- name: Read version and Get date
51+
run: |
52+
echo "VERSION=$(cat version)" >> "${GITHUB_ENV}"
53+
echo "DATE=$(date +'%Y-%m-%d_%s')" >> "$GITHUB_ENV"
6954
70-
- name: Release Artifacts
71-
uses: softprops/[email protected]
72-
with:
73-
name: "rofi: ${{ env.VERSION }}"
74-
tag_name: "${{ env.VERSION }}@${{ env.DATE }}"
75-
prerelease: false
76-
draft: false
77-
generate_release_notes: false
78-
fail_on_unmatched_files: false
79-
make_latest: true
80-
files: |
81-
*.AppImage*
82-
*.AppBundle*
55+
- name: Release Artifacts
56+
uses: softprops/[email protected]
57+
with:
58+
name: "rofi: ${{ env.VERSION }}"
59+
tag_name: "${{ env.VERSION }}@${{ env.DATE }}"
60+
prerelease: false
61+
draft: false
62+
generate_release_notes: false
63+
fail_on_unmatched_files: false
64+
make_latest: true
65+
files: |
66+
*.AppImage*
67+
*.AppBundle*

get-dependencies.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
set -ex
44
EXTRA_PACKAGES="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/get-debloated-pkgs.sh"
5-
PATCH="$PWD"/locale-fix.patch
65

76
echo "Installing build dependencies..."
87
echo "---------------------------------------------------------------"
@@ -43,7 +42,6 @@ echo "Building rofi..."
4342
echo "---------------------------------------------------------------"
4443
git clone --depth 1 "https://github.com/davatorium/rofi.git" ./rofi && (
4544
cd ./rofi
46-
patch -p1 -i "$PATCH"
4745
meson --prefix /usr . build
4846
meson compile -C build
4947
meson install -C build

locale-fix.patch

Lines changed: 0 additions & 22 deletions
This file was deleted.

rofi-appimage.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ set -eux
44

55
ARCH="$(uname -m)"
66
VERSION="$(cat ~/version)"
7-
SHARUN="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/execv-hook/useful-tools/quick-sharun.sh"
7+
SHARUN="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/quick-sharun.sh"
88
URUNTIME="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/uruntime2appimage.sh"
9-
UPDATER="https://raw.githubusercontent.com/pkgforge-dev/Anylinux-AppImages/refs/heads/main/useful-tools/self-updater.bg.hook"
109

1110
export UPINFO="gh-releases-zsync|${GITHUB_REPOSITORY%/*}|${GITHUB_REPOSITORY#*/}|latest|*$ARCH.AppImage.zsync"
1211
export OUTNAME=rofi-"$VERSION"-anylinux-"$ARCH".AppImage
1312
export DESKTOP=/usr/share/applications/rofi.desktop
1413
export ICON=/usr/share/icons/hicolor/scalable/apps/rofi.svg
1514
export URUNTIME_PRELOAD=1 # really needed here
1615
export EXEC_WRAPPER=1 # needed here since this will launch other processes
16+
export LOCALE_FIX=1 # crashes when it cannot switch to host locale
1717

1818
# ADD LIBRARIES
1919
wget --retry-connrefused --tries=30 "$SHARUN" -O ./quick-sharun
2020
chmod +x ./quick-sharun
2121
./quick-sharun /usr/bin/rofi*
22-
echo 'unset ARGV0' > ./AppDir/.env
22+
echo 'unset ARGV0' >> ./AppDir/.env
2323

2424
# MAKE APPIMAGE WITH URUNTIME
2525
wget --retry-connrefused --tries=30 "$URUNTIME" -O ./uruntime2appimage
@@ -46,5 +46,6 @@ zsyncmake ./*.AppBundle -u ./*.AppBundle
4646
mkdir -p ./dist
4747
mv -v ./*.AppImage* ./dist
4848
mv -v ./*.AppBundle* ./dist
49+
mv -v ~/version ./dist
4950

5051
echo "All Done!"

0 commit comments

Comments
 (0)