From 388d545162ff70816338b02ab5e1663e4ffc889a Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 22 Mar 2026 12:20:41 +0100 Subject: [PATCH 1/2] 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": [ { From a9511ef3d8c1c86f45c96e639f0fcd2a121c5698 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 22 Mar 2026 12:22:28 +0100 Subject: [PATCH 2/2] Version 0.2.5 --- README.md | 2 +- installer.sh | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d82d852..cf0266f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ cd linear-linux The installer: - Downloads the AppImage, extracts it under `/opt/linear-linux-`, and wires up the `chrome-sandbox` helper correctly. - Installs a wrapper at `/usr/local/bin/linear`, a desktop entry, and the Linear icon into the system icon cache. -- Accepts overrides: `VERSION=0.2.4 APPIMAGE_URL= INSTALL_ROOT=/opt ./installer.sh` +- Accepts overrides: `VERSION=0.2.5 APPIMAGE_URL= INSTALL_ROOT=/opt ./installer.sh` Development: - `npm start` launches Electron with sandbox disabled for local runs (packaged builds use the proper setuid helper). diff --git a/installer.sh b/installer.sh index 74da5f1..8fba535 100755 --- a/installer.sh +++ b/installer.sh @@ -11,7 +11,7 @@ case "$ARCH" in *) echo "Unsupported architecture: $ARCH"; exit 1 ;; esac -VERSION="${VERSION:-0.2.4}" +VERSION="${VERSION:-0.2.5}" 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}" diff --git a/package.json b/package.json index 17fce46..899dc68 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "linear-linux", - "version": "0.2.4", + "version": "0.2.5", "description": "Linux support for linear.app", "main": "index.js", "scripts": {