Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,18 @@ on:
jobs:
build-linux:
# We'll run on Ubuntu as it's required for .deb and .snap packages
runs-on: ubuntu-latest
runs-on: ${{ matrix.dist.runs-on }}
strategy:
matrix:
dist:
- {
arch: x64,
runs-on: ubuntu-latest
}
- {
arch: arm64,
runs-on: ubuntu-24.04-arm
}

steps:
- name: 'Checkout Repository'
Expand Down Expand Up @@ -38,9 +49,9 @@ jobs:
- name: 'Pack Snap'
id: snap-build
run: |
mkdir -p out/make/snap/x64/
mkdir -p out/make/snap/${{ matrix.dist.arch }}/
# --destructive-mode allows building without a VM/Container
sudo snapcraft pack --output out/make/snap/x64/ --destructive-mode
sudo snapcraft pack --output out/make/snap/${{ matrix.dist.arch }}/ --destructive-mode
# Set the snap path as an output for the next steps
SNAP_PATH=$(find ./out/make/snap -name '*.snap' -type f | head -n 1)
echo "SNAP_PATH=$SNAP_PATH" >> $GITHUB_ENV
Expand Down Expand Up @@ -117,4 +128,4 @@ jobs:
gh release upload ${{ github.event.release.tag_name }} "$PACKAGE_PATH" --clobber
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: powershell
shell: powershell
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dev": "electron-vite dev --watch --sourcemap --debug hmr --remote-debugging-port=9222 --outDir=dist --inspect src/main/index.ts",
"package": "npm run build && electron-forge package",
"make": "npm run build && electron-forge make",
"make:snap": "node scripts/set-snap-version.cjs && mkdir -p out/make/snap/x64/ && snapcraft pack --output out/make/snap/x64/",
"make:snap": "ARCH=$(node -e \"console.log(process.arch)\") && node scripts/set-snap-version.cjs && mkdir -p out/make/snap/$ARCH/ && snapcraft pack --output out/make/snap/$ARCH/",
"rebuild": "electron-rebuild -f -w better-sqlite3"
},
"author": "Xibo Signage Ltd",
Expand Down
6 changes: 4 additions & 2 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ apps:
parts:
app:
plugin: dump
source: out/xibo-player-linux-x64
source:
- on amd64: out/xibo-player-linux-x64
- on arm64: out/xibo-player-linux-arm64
# STRATEGY: Move custom libraries into the standard system path
# This prevents 'not found' errors because the loader checks here by default.
organize:
Expand Down Expand Up @@ -57,4 +59,4 @@ parts:
- libpango-1.0-0
- libcairo2
- libgtk-3-0t64
- libgl1
- libgl1
Loading