From 388d545162ff70816338b02ab5e1663e4ffc889a Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 22 Mar 2026 12:20:41 +0100 Subject: [PATCH] Working for both arm and x64 #15 --- installer.sh | 12 ++++++++++-- package.json | 10 +++++----- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/installer.sh b/installer.sh index d5a995c..74da5f1 100755 --- a/installer.sh +++ b/installer.sh @@ -2,8 +2,17 @@ set -euo pipefail +ARCH=$(uname -m) + +# Normalize to electron-builder naming +case "$ARCH" in + x86_64) ARCH="x64" ;; + aarch64 | arm64) ARCH="arm64" ;; + *) echo "Unsupported architecture: $ARCH"; exit 1 ;; +esac + VERSION="${VERSION:-0.2.4}" -APPIMAGE_URL="${APPIMAGE_URL:-https://github.com/selimaj-dev/linear-linux/releases/download/v${VERSION}/linear-linux-${VERSION}.AppImage}" +APPIMAGE_URL="${APPIMAGE_URL:-https://github.com/selimaj-dev/linear-linux/releases/download/v${VERSION}/linear-linux-${VERSION}-${ARCH}.AppImage}" INSTALL_ROOT="${INSTALL_ROOT:-/opt}" INSTALL_DIR="${INSTALL_ROOT}/linear-linux-${VERSION}" WRAPPER_PATH="/usr/local/bin/linear" @@ -69,4 +78,3 @@ sudo chown root:root /opt/Linear/chrome-sandbox || true sudo chmod 4755 /opt/Linear/chrome-sandbox || true echo "Linear ${VERSION} installed. Launch with: ${WRAPPER_PATH}" - diff --git a/package.json b/package.json index 2448f97..17fce46 100644 --- a/package.json +++ b/package.json @@ -5,14 +5,14 @@ "main": "index.js", "scripts": { "start": "CHROME_DEVEL_SANDBOX=${CHROME_DEVEL_SANDBOX:-/opt/linear-linux/squashfs-root/chrome-sandbox} ELECTRON_DISABLE_SANDBOX=1 npx electron index.js", - "build": "npx electron-builder --linux AppImage deb" + "build": "npx electron-builder --linux AppImage --x64 --arm64" }, "repository": { "type": "git", "url": "git+https://github.com/kleo-dev/linear-linux.git" }, "keywords": [], - "author": "Linear Linux ", + "author": "Selimaj Dev", "license": "ISC", "bugs": { "url": "https://github.com/kleo-dev/linear-linux/issues" @@ -28,11 +28,11 @@ ], "linux": { "target": [ - "AppImage", - "deb" + "AppImage" ], "category": "Utility", - "icon": "assets/linear-app-icon.png" + "icon": "assets/linear-app-icon.png", + "artifactName": "linear-linux-${version}-${arch}.${ext}" }, "extraResources": [ {