From 83c5e00a8dbcac05ce6953dced857f6c9efa5f29 Mon Sep 17 00:00:00 2001 From: Anirudh Sevugan Date: Mon, 14 Jul 2025 19:33:26 -0500 Subject: [PATCH] Update build-linux.yml --- .github/workflows/build-linux.yml | 70 ++++++++++++++++++++++++------- 1 file changed, 56 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index c8f32b0..9931b21 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -1,5 +1,5 @@ -name: Build Linux -# we build arm64 snaps in house +name: Build Linux + on: push: branches: [main] @@ -11,6 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: 22 @@ -18,11 +19,9 @@ jobs: - run: npm install working-directory: simpliplay - # Build Snap and AppImage both - run: npx electron-builder --linux --x64 working-directory: simpliplay - # Upload Snap artifact - uses: actions/upload-artifact@v4 with: name: linux-x64-snap @@ -47,22 +46,65 @@ jobs: - run: npm install working-directory: simpliplay - # Snapcraft CLI – optional if electron-builder doesn't need it - #- run: sudo snap install snapcraft --classic + - run: sudo snap install snapcraft --classic + + - run: npx electron-builder --dir --arm64 --linux + working-directory: simpliplay + + - name: Create snapcraft.yaml + run: | + mkdir -p snap + cat > snap/snapcraft.yaml <