|
84 | 84 | name: "linux" |
85 | 85 | path: ./DistributionKit/InstallerSilaty.run |
86 | 86 |
|
| 87 | +# linux-appimage ------------------------------------------------------- |
| 88 | + silatylinux-appimage: |
| 89 | + name: Linux (AppImage) |
| 90 | + runs-on: ubuntu-20.04 |
| 91 | + steps: |
| 92 | + - name: Check Git repository |
| 93 | + uses: actions/checkout@v3 |
| 94 | + with: |
| 95 | + submodules: recursive |
| 96 | + |
| 97 | + - name: Install Qt |
| 98 | + |
| 99 | + with: |
| 100 | + version: 6.5.1 |
| 101 | + host: linux |
| 102 | + target: desktop |
| 103 | + dir: '${{github.workspace}}/qt/' |
| 104 | + modules: 'qtmultimedia' |
| 105 | + aqtversion: '==3.1.6' |
| 106 | + |
| 107 | + - name: 'Install dependencies' |
| 108 | + run: | |
| 109 | + sudo apt-get update |
| 110 | + sudo apt-get install libgl1-mesa-dev libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-render-util0 libxcb-xinerama0 libzstd-dev libxcb-image0-dev libxcb-util0-dev libxcb-cursor-dev |
| 111 | +
|
| 112 | + - name: 'Compile application' |
| 113 | + run: | |
| 114 | + ${{env.QMAKE}} ${{env.QMAKE_PROJECT}} CONFIG+=release PREFIX=/usr |
| 115 | + make -j${{env.CORES}} |
| 116 | +
|
| 117 | + - name: 'Install linuxdeploy' |
| 118 | + run: | |
| 119 | + wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage |
| 120 | + wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage |
| 121 | + chmod +x linuxdeploy-x86_64.AppImage |
| 122 | + chmod +x linuxdeploy-plugin-qt-x86_64.AppImage |
| 123 | +
|
| 124 | +
|
| 125 | + - name: 'Create AppImage' |
| 126 | + run: | |
| 127 | + export QML_SOURCES_PATHS="${{env.QML_DIR_NIX}}" |
| 128 | + export QMAKE=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/bin/${{env.QMAKE}} |
| 129 | + export PATH=${{env.REPO_DIR}}/Qt/${{env.QT_VERSION}}/gcc_64/libexec:$PATH |
| 130 | + ./linuxdeploy-x86_64.AppImage --appdir AppDir -e ${{env.UNIXNAME}} -i deploy/linux/${{env.UNIXNAME}}.png -d deploy/linux/${{env.UNIXNAME}}.desktop --plugin qt --output appimage |
| 131 | + rm linuxdeploy-x86_64.AppImage |
| 132 | + rm linuxdeploy-plugin-qt-x86_64.AppImage |
| 133 | + mv *.AppImage ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage |
| 134 | +
|
| 135 | + - name: Release Silaty |
| 136 | + |
| 137 | + with: |
| 138 | + name: "linux (appimage)" |
| 139 | + path: ${{env.EXECUTABLE}}-${{env.VERSION}}-Linux.AppImage |
| 140 | + |
87 | 141 | # macos ---------------------------------------------------------------- |
88 | 142 | silatymacos: |
89 | 143 | name: macOS |
|
0 commit comments