Skip to content

Commit 16aa2a0

Browse files
committed
Fix: Install Node.js 22 via Nodesource and fix tauri build args
1 parent 5f86ee6 commit 16aa2a0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packaging/snap/snapcraft.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,16 @@ parts:
4848
- libgtk-3-0
4949
- libayatana-appindicator3-1
5050
override-build: |
51+
# Install Node.js 22 manually (System node is too old)
52+
curl -fsSL https://deb.nodesource.com/setup_22.x | bash -
53+
apt-get install -y nodejs
54+
55+
# Install Dependencies
5156
npm ci
52-
npm run tauri build -- --bundles none
57+
58+
# Build (without invalid bundles flag)
59+
npm run tauri build
60+
61+
# Install binary
5362
mkdir -p $CRAFT_PART_INSTALL/bin
5463
cp src-tauri/target/release/glance-linuxoptimizer $CRAFT_PART_INSTALL/bin/

0 commit comments

Comments
 (0)