Skip to content

Commit dd9dca9

Browse files
authored
Merge pull request #16 from selimaj-dev/fixed-arch
Fixed arch
2 parents e5dcb28 + a9511ef commit dd9dca9

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ cd linear-linux
2222
The installer:
2323
- Downloads the AppImage, extracts it under `/opt/linear-linux-<version>`, and wires up the `chrome-sandbox` helper correctly.
2424
- Installs a wrapper at `/usr/local/bin/linear`, a desktop entry, and the Linear icon into the system icon cache.
25-
- Accepts overrides: `VERSION=0.2.4 APPIMAGE_URL=<url> INSTALL_ROOT=/opt ./installer.sh`
25+
- Accepts overrides: `VERSION=0.2.5 APPIMAGE_URL=<url> INSTALL_ROOT=/opt ./installer.sh`
2626

2727
Development:
2828
- `npm start` launches Electron with sandbox disabled for local runs (packaged builds use the proper setuid helper).

installer.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,17 @@
22

33
set -euo pipefail
44

5-
VERSION="${VERSION:-0.2.4}"
6-
APPIMAGE_URL="${APPIMAGE_URL:-https://github.com/selimaj-dev/linear-linux/releases/download/v${VERSION}/linear-linux-${VERSION}.AppImage}"
5+
ARCH=$(uname -m)
6+
7+
# Normalize to electron-builder naming
8+
case "$ARCH" in
9+
x86_64) ARCH="x64" ;;
10+
aarch64 | arm64) ARCH="arm64" ;;
11+
*) echo "Unsupported architecture: $ARCH"; exit 1 ;;
12+
esac
13+
14+
VERSION="${VERSION:-0.2.5}"
15+
APPIMAGE_URL="${APPIMAGE_URL:-https://github.com/selimaj-dev/linear-linux/releases/download/v${VERSION}/linear-linux-${VERSION}-${ARCH}.AppImage}"
716
INSTALL_ROOT="${INSTALL_ROOT:-/opt}"
817
INSTALL_DIR="${INSTALL_ROOT}/linear-linux-${VERSION}"
918
WRAPPER_PATH="/usr/local/bin/linear"
@@ -69,4 +78,3 @@ sudo chown root:root /opt/Linear/chrome-sandbox || true
6978
sudo chmod 4755 /opt/Linear/chrome-sandbox || true
7079

7180
echo "Linear ${VERSION} installed. Launch with: ${WRAPPER_PATH}"
72-

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
22
"name": "linear-linux",
3-
"version": "0.2.4",
3+
"version": "0.2.5",
44
"description": "Linux support for linear.app",
55
"main": "index.js",
66
"scripts": {
77
"start": "CHROME_DEVEL_SANDBOX=${CHROME_DEVEL_SANDBOX:-/opt/linear-linux/squashfs-root/chrome-sandbox} ELECTRON_DISABLE_SANDBOX=1 npx electron index.js",
8-
"build": "npx electron-builder --linux AppImage deb"
8+
"build": "npx electron-builder --linux AppImage --x64 --arm64"
99
},
1010
"repository": {
1111
"type": "git",
1212
"url": "git+https://github.com/kleo-dev/linear-linux.git"
1313
},
1414
"keywords": [],
15-
"author": "Linear Linux <linear@example.com>",
15+
"author": "Selimaj Dev",
1616
"license": "ISC",
1717
"bugs": {
1818
"url": "https://github.com/kleo-dev/linear-linux/issues"
@@ -28,11 +28,11 @@
2828
],
2929
"linux": {
3030
"target": [
31-
"AppImage",
32-
"deb"
31+
"AppImage"
3332
],
3433
"category": "Utility",
35-
"icon": "assets/linear-app-icon.png"
34+
"icon": "assets/linear-app-icon.png",
35+
"artifactName": "linear-linux-${version}-${arch}.${ext}"
3636
},
3737
"extraResources": [
3838
{

0 commit comments

Comments
 (0)