build: Added explicit bun version and fixed package script name casing

This commit is contained in:
Simeon Radivoev 2026-03-01 18:34:20 +02:00
parent 3e5881300f
commit 43afd6256e
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
3 changed files with 8 additions and 6 deletions

View file

@ -14,7 +14,7 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
persist-credentials: 'true' # Optional; should be the default persist-credentials: "true" # Optional; should be the default
- name: Checkout lfs - name: Checkout lfs
run: | run: |
@ -53,7 +53,7 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y p7zip-full run: sudo apt-get update && sudo apt-get install -y p7zip-full
- name: Build Canary - name: Build Canary
run: bun run package:linux run: bun run package:Linux
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3

View file

@ -10,6 +10,7 @@
"type": "git", "type": "git",
"url": "https://github.com/simeonradivoev/gameflow-deck" "url": "https://github.com/simeonradivoev/gameflow-deck"
}, },
"packageManager": "bun@1.3.9",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "NODE_ENV=development bun run build:vite && WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS='--remote-debugging-port=9222' bun run ./scripts/dev.ts", "dev": "NODE_ENV=development bun run build:vite && WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS='--remote-debugging-port=9222' bun run ./scripts/dev.ts",
@ -35,8 +36,8 @@
"build:prod:appimage": "bun run build:prod && bun run ./scripts/build-appimage.ts", "build:prod:appimage": "bun run build:prod && bun run ./scripts/build-appimage.ts",
"build:dev:appimage": "bun run build && bun run ./scripts/build-appimage.ts", "build:dev:appimage": "bun run build && bun run ./scripts/build-appimage.ts",
"version:generate": "standard-version --sign", "version:generate": "standard-version --sign",
"package:linux": "bun run build:prod:appimage", "package:Linux": "bun run build:prod:appimage",
"package:windows": "bun run build:prod" "package:Windows": "bun run build:prod"
}, },
"dependencies": { "dependencies": {
"@auth/core": "^0.34.3", "@auth/core": "^0.34.3",

View file

@ -9,7 +9,8 @@ import { rmdir } from "node:fs";
// ───────────────────────────────────────────── // ─────────────────────────────────────────────
// CONFIGURE THESE FOR YOUR APP // CONFIGURE THESE FOR YOUR APP
// ───────────────────────────────────────────── // ─────────────────────────────────────────────
const APP_DIR = "./build/linux"; const BUILD_DIR = process.env.BUILD_DIR ?? process.platform;
const APP_DIR = `./build/${BUILD_DIR}`;
const BINARY_NAME = pkg.bin; const BINARY_NAME = pkg.bin;
const ICON = "./src/mainview/assets/256x256.png"; const ICON = "./src/mainview/assets/256x256.png";
const DESKTOP = "./flatpak/com.simeonradivoev.gameflow-deck.desktop"; const DESKTOP = "./flatpak/com.simeonradivoev.gameflow-deck.desktop";