From 673017c68c7c1ab98b9f3266a99f19293be4b5a5 Mon Sep 17 00:00:00 2001 From: Marco Kellershoff Date: Tue, 14 Jan 2025 22:11:29 +0100 Subject: [PATCH] feat(linux): arm64 support fix #76. --- package.json | 14 +++++++++----- scripts/release.sh | 4 ++++ 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 5f85362..f2a0153 100644 --- a/package.json +++ b/package.json @@ -22,11 +22,15 @@ "build:unpack": "bun run build && electron-builder --dir", "build:windows": "bun run build && electron-builder --win --publish never", "build:macos": "bun run build && electron-builder --mac --publish never", - "build:linux": "bun run build && electron-builder --linux --publish never", - "build:linux:deb": "bun run build && electron-builder --linux deb --publish never", - "build:linux:appimage": "bun run build && electron-builder --linux appImage --publish never", - "build:linux:snap": "bun run build && electron-builder --linux snap --publish never", - "build:linux:flatpak": "bun run build && electron-builder --linux flatpak --publish never", + "build:linux": "bun run build && electron-builder --linux --publish never --x64 && electron-builder --linux --publish never --arm64", + "build:linux:deb:x64": "bun run build && electron-builder --linux deb --publish never --x64", + "build:linux:deb:arm64": "bun run build && electron-builder --linux deb --publish never --arm64", + "build:linux:appimage:x64": "bun run build && electron-builder --linux appImage --publish never --x64", + "build:linux:appimage:arm64": "bun run build && electron-builder --linux appImage --publish never --arm64", + "build:linux:snap:x64": "bun run build && electron-builder --linux snap --publish never --x64", + "build:linux:snap:arm64": "bun run build && electron-builder --linux snap --publish never --arm64", + "build:linux:flatpak:x64": "bun run build && electron-builder --linux flatpak --publish never --x64", + "build:linux:flatpak:arm64": "bun run build && electron-builder --linux flatpak --publish never --arm64", "node:packages:update": "ncu -u", "node:packaages:upgrade": "ncu -u && bun install" }, diff --git a/scripts/release.sh b/scripts/release.sh index 5e804e9..304b08d 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -10,9 +10,13 @@ FILES=() LINUX_FILES=( "dist/${BIN_NAME}_amd64.deb" + "dist/${BIN_NAME}_arm64.deb" "dist/${BIN_NAME}_amd64.snap" + "dist/${BIN_NAME}_arm64.snap" "dist/${BIN_NAME}_x86_64.AppImage" + "dist/${BIN_NAME}_arm64.AppImage" "dist/${BIN_NAME}_x86_64.flatpak" + "dist/${BIN_NAME}_arm64.flatpak" ) WINDOWS_FILES=(