comparison .builds/linux.yml @ 362:433eeaca3baf

CI/linux: revert change to linuxdeployqt; add qt plugin turns out I'm stupid and linuxdeployqt is insanely broken
author Paper <paper@paper.us.eu.org>
date Mon, 15 Jul 2024 01:28:57 -0400
parents d1d772665a07
children f10507d8f686
comparison
equal deleted inserted replaced
361:d1d772665a07 362:433eeaca3baf
11 - libxcb1-dev 11 - libxcb1-dev
12 - libxcb-res0-dev 12 - libxcb-res0-dev
13 - libwayland-dev 13 - libwayland-dev
14 - pkg-config 14 - pkg-config
15 - libglib2.0-dev 15 - libglib2.0-dev
16 - desktop-file-utils 16 sources:
17 - hg+https://hg.paper.us.eu.org/minori
17 tasks: 18 tasks:
18 - build: | 19 - build: |
19 # build 20 # build
20 cd minori 21 cd minori
21 mkdir build 22 mkdir build
22 cd build 23 cd build
23 cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr 24 cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release
24 make 25 make
25 make DESTDIR=AppDir install
26 26
27 # resources 27 # resources
28 mkdir -p rc 28 mkdir -p rc
29 cp ../rc/sys/linux/Minori.desktop rc/Minori.desktop 29 cp ../rc/sys/linux/Minori.desktop rc/Minori.desktop
30 cp ../rc/sys/linux/Minori.svg rc/Minori.svg 30 cp ../rc/sys/linux/Minori.svg rc/Minori.svg
31 31
32 # use linuxdeployqt to make an appimage 32 # use linuxdeploy to make an appimage
33 wget -O linuxdeployqt "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" 33 wget -O linuxdeploy "https://github.com/linuxdeploy/linuxdeploy/releases/download/1-alpha-20240109-1/linuxdeploy-x86_64.AppImage"
34 chmod +x linuxdeployqt 34 chmod +x linuxdeploy
35 35 LD_LIBRARY_PATH=. ./linuxdeploy --appdir Minori --executable ./minori -d rc/Minori.desktop -i rc/Minori.svg --output appimage --plugin qt
36 mkdir -p AppDir/usr/bin
37 mkdir -p AppDir/usr/lib
38 mkdir -p AppDir/usr/share/applications
39 mkdir -p AppDir/usr/share/icons/hicolor/scalable/apps
40
41 cp ../rc/sys/linux/Minori.svg AppDir/Minori.svg
42 cp ../rc/sys/linux/Minori.desktop AppDir/usr/share/applications/Minori.desktop
43 cp minori AppDir/usr/bin/minori
44
45 # hack: need to ignore linuxdeployqt silently failing due to missing appimagetool.
46 # additionally, because of that we have to roll appimagetool ourselves
47 ./linuxdeployqt AppDir/usr/share/applications/Minori.desktop -unsupported-allow-new-glibc -appimage || true
48
49 # ack
50 wget -O appimagetool "https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage"
51 chmod +x appimagetool
52
53 ./appimagetool AppDir minori-x86_64.AppImage
54 artifacts: 36 artifacts:
55 - minori/build/minori-x86_64.AppImage 37 - minori/build/Minori-x86_64.AppImage
56 triggers: 38 triggers:
57 - action: email 39 - action: email
58 condition: failure 40 condition: failure
59 to: Paper <paper@paper.us.eu.org> 41 to: Paper <paper@paper.us.eu.org>