diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 2dcbd01..ac6c175 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -14,7 +14,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - persist-credentials: 'true' # Optional; should be the default + persist-credentials: "true" # Optional; should be the default - name: Checkout lfs run: | @@ -53,7 +53,7 @@ jobs: run: sudo apt-get update && sudo apt-get install -y p7zip-full - name: Build Canary - run: bun run package:linux + run: bun run package:Linux - name: Upload Artifact uses: actions/upload-artifact@v3 diff --git a/package.json b/package.json index 2ed92aa..0179b2a 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "type": "git", "url": "https://github.com/simeonradivoev/gameflow-deck" }, + "packageManager": "bun@1.3.9", "type": "module", "scripts": { "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:dev:appimage": "bun run build && bun run ./scripts/build-appimage.ts", "version:generate": "standard-version --sign", - "package:linux": "bun run build:prod:appimage", - "package:windows": "bun run build:prod" + "package:Linux": "bun run build:prod:appimage", + "package:Windows": "bun run build:prod" }, "dependencies": { "@auth/core": "^0.34.3", @@ -110,4 +111,4 @@ "vite-static-assets-plugin": "^1.2.2", "vite-tsconfig-paths": "^6.1.1" } -} +} \ No newline at end of file diff --git a/scripts/build-appimage.ts b/scripts/build-appimage.ts index d69f113..389d073 100644 --- a/scripts/build-appimage.ts +++ b/scripts/build-appimage.ts @@ -9,7 +9,8 @@ import { rmdir } from "node:fs"; // ───────────────────────────────────────────── // 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 ICON = "./src/mainview/assets/256x256.png"; const DESKTOP = "./flatpak/com.simeonradivoev.gameflow-deck.desktop";