Skip to content

Commit ee9e6b6

Browse files
authored
Update build.yml
1 parent e2d4b51 commit ee9e6b6

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
on: [push, pull_request]
2-
31
jobs:
42
tests:
53
runs-on: ubuntu-latest
@@ -26,8 +24,16 @@ jobs:
2624
shell: bash
2725
run: echo "git_short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
2826

29-
- name: "Upload artifacts"
30-
uses: actions/upload-artifact@v4
31-
with:
32-
name: LibreSplit-${{ env.build_number }}-${{ env.git_short_sha }}
33-
path: libresplit
27+
- name: "Prepare AppDir"
28+
run: |
29+
mkdir -p LibreSplit.AppDir/usr/bin
30+
mkdir -p LibreSplit.AppDir/usr/share/applications
31+
mkdir -p LibreSplit.AppDir/usr/share/icons/hicolor
32+
mkdir -p LibreSplit.AppDir/usr/share/glib-2.0/schemas
33+
cp libresplit LibreSplit.AppDir/usr/bin/
34+
cp libresplit.desktop LibreSplit.AppDir/usr/share/applications/
35+
for size in 16 22 24 32 36 48 64 72 96 128 256 512; do
36+
mkdir -p LibreSplit.AppDir/usr/share/icons/hicolor/"${size}x${size}"/apps
37+
rsvg-convert -w "$size" -h "$size" -f png -o LibreSplit.AppDir/usr/share/icons/hicolor/"${size}x${size}"/apps/libresplit.png libresplit.svg
38+
done
39+
cp libresplit.gschema.xml LibreSplit.AppDir/usr/share/glib-2.0/schemas/

0 commit comments

Comments
 (0)