diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index 1a3f254..b5a194f 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -54,77 +54,80 @@ jobs: - name: Create snapcraft.yaml run: | cat > simpliplay/dist/snapcraft.yaml <<'EOF' - name: simpliplay - base: core24 - version: '2.0.2' - summary: SimpliPlay - Media playback accessible anywhere, anytime. - description: | - SimpliPlay is a modern Electron-based media player supporting various formats. +name: simpliplay +base: core24 +version: '2.0.2' +summary: SimpliPlay - Media playback accessible anywhere, anytime. +description: | + SimpliPlay is a modern Electron-based media player supporting various formats. - grade: stable - confinement: strict +grade: stable +confinement: strict - environment: - LD_LIBRARY_PATH: $SNAP/usr/lib:$SNAP/lib:$SNAP/usr/local/lib +environment: + LD_LIBRARY_PATH: $SNAP/usr/lib:$SNAP/lib:$SNAP/usr/local/lib - apps: - simpliplay: - command: SimpliPlay --no-sandbox - plugs: - - desktop - - x11 - - wayland - - audio-playback - - home - - removable-media +apps: + simpliplay: + command: SimpliPlay --no-sandbox + plugs: + - desktop + - x11 + - wayland + - audio-playback + - home + - removable-media - parts: - liboss: - plugin: autotools - source: https://fossies.org/linux/misc/oss-v4.2-build2020-src-gpl.tar.bz2 - build-packages: - - build-essential - - gcc - - make - - libtool - - automake - - linux-headers-generic - stage: - - usr/lib/libOSSlib.so +parts: + liboss: + plugin: autotools + source: https://www.dropbox.com/scl/fi/etmheu10vg4kt5kb24ud4/oss-v4.2-build2020-src-gpl.tar.bz2?rlkey=wabpszkdgrvpdc4enccfbkf4k&st=ct62oegu&dl=1 + build-packages: + - build-essential + - gcc + - make + - libtool + - automake + - linux-headers-generic + stage: + - usr/lib/libOSSlib.so - simpliplay: - plugin: dump - source: ./linux-arm64-unpacked - stage-packages: - - libnss3 - - libasound2 - - libx11-xcb1 - - libxcomposite1 - - libxcursor1 - - libxdamage1 - - libxrandr2 - - libgtk-3-0 - - libllvm19 - - libdrm-amdgpu1 - - libdrm-radeon1 - - mesa-libgallium - - libgbm1 - - libglapi-mesa - - libsensors5 - - libwayland-server0 - - libxcb-dri2-0 - - libxcb-dri3-0 - - libxcb-present0 - - libxcb-randr0 - - libxcb-sync1 - - libxcb-xfixes0 - - libxshmfence1 - after: - - liboss - EOF + simpliplay: + plugin: dump + source: ./linux-arm64-unpacked + stage-packages: + - libnss3 + - libasound2 + - libx11-xcb1 + - libxcomposite1 + - libxcursor1 + - libxdamage1 + - libxrandr2 + - libgtk-3-0 + - libllvm19 + - libdrm-amdgpu1 + - libdrm-radeon1 + - mesa-libgallium + - libgbm1 + - libglapi-mesa + - libsensors5 + - libwayland-server0 + - libxcb-dri2-0 + - libxcb-dri3-0 + - libxcb-present0 + - libxcb-randr0 + - libxcb-sync1 + - libxcb-xfixes0 + - libxshmfence1 + after: + - liboss +EOF - - run: sudo apt-get update && sudo apt-get install -y autoconf automake autopoint build-essential gcc libtool linux-headers-generic make tar - - run: snapcraft --destructive-mode --output=simpliplay-arm64.snap + - name: Install build dependencies + run: sudo apt-get update && sudo apt-get install -y autoconf automake autopoint build-essential gcc libtool linux-headers-generic make tar + + - name: Build snap package + run: snapcraft --destructive-mode --output=simpliplay-arm64.snap working-directory: simpliplay/dist/ - uses: actions/upload-artifact@v4