commit
Try fix the workflow
diff --git a/.github/workflows/desktop-release.yml b/.github/workflows/desktop-release.yml
index e9d220c..ae41d08 100644
--- a/.github/workflows/desktop-release.yml
+++ b/.github/workflows/desktop-release.yml
@@ -8,13 +8,10 @@ name: release
#
# THIS FILE IS MADE BY CLAUDE, SO IF SHIT BREAKS, I'M SORRY!
on:
- push:
- tags:
- - "desktop-v*"
workflow_dispatch:
inputs:
version:
- description: "Release tag to create, e.g. desktop-v1.0.0"
+ description: "Release tag to create, e.g. v1.0.0"
required: true
type: string
@@ -157,7 +154,12 @@ jobs:
working-directory: apps/desktop/src-tauri
env:
NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
- run: bunx @tauri-apps/cli@2 android init
+ # Use the locally-installed CLI (bun run tauri) rather than `bunx`.
+ # Tauri's generated Gradle project builds the Rust code per-ABI by
+ # re-invoking the CLI as `bun run tauri …`, which needs a `tauri`
+ # package.json script + @tauri-apps/cli as a dep. `bunx` leaves neither
+ # in place, so that nested call fails with `Script not found "tauri"`.
+ run: bun run tauri android init
# Inject the release signingConfig into the freshly generated
# build.gradle.kts, then write keystore.properties + the decoded keystore
@@ -176,7 +178,7 @@ jobs:
working-directory: apps/desktop/src-tauri
env:
NDK_HOME: ${{ steps.ndk.outputs.ndk-path }}
- run: bunx @tauri-apps/cli@2 android build --apk
+ run: bun run tauri android build --apk
# Attach the signed APK to the draft release, then publish it as the
# latest release. Fails loudly if only an -unsigned APK exists (which
diff --git a/bun.lock b/bun.lock
index 211cea2..15d2949 100644
--- a/bun.lock
+++ b/bun.lock
@@ -8,6 +8,7 @@
"@dotenvx/dotenvx": "^1.0.0",
},
"devDependencies": {
+ "@tauri-apps/cli": "^2",
"@types/bun": "^1.3.14",
"concurrently": "^9.2.4",
"typescript": "^5.9.3",
@@ -83,6 +84,30 @@
"@tauri-apps/api": ["@tauri-apps/[email protected]", "", {}, "sha512-M2FPuYND2m+wh5hfW9ZpSdxMPdEJovPBWwoHJmwUpysTYNHaOkVFN419m/K0LIgjb/7KU2vBgsUepJWugQCvAA=="],
+ "@tauri-apps/cli": ["@tauri-apps/[email protected]", "", { "optionalDependencies": { "@tauri-apps/cli-darwin-arm64": "2.11.4", "@tauri-apps/cli-darwin-x64": "2.11.4", "@tauri-apps/cli-linux-arm-gnueabihf": "2.11.4", "@tauri-apps/cli-linux-arm64-gnu": "2.11.4", "@tauri-apps/cli-linux-arm64-musl": "2.11.4", "@tauri-apps/cli-linux-riscv64-gnu": "2.11.4", "@tauri-apps/cli-linux-x64-gnu": "2.11.4", "@tauri-apps/cli-linux-x64-musl": "2.11.4", "@tauri-apps/cli-win32-arm64-msvc": "2.11.4", "@tauri-apps/cli-win32-ia32-msvc": "2.11.4", "@tauri-apps/cli-win32-x64-msvc": "2.11.4" }, "bin": { "tauri": "tauri.js" } }, "sha512-R8xGtMpwyetawSqm9kYOuMmEqkhUbvcUy8n0aNXIxollKBLESUu5f4Fx+64hgASYm1H+jSWq6jCW6zqTnH6hqQ=="],
+
+ "@tauri-apps/cli-darwin-arm64": ["@tauri-apps/[email protected]", "", { "os": "darwin", "cpu": "arm64" }, "sha512-1ryOF3ZhpZ/nemHV5zVwBQBz9jDGKmKPvWPADOhc83ig0P4bMc2iER4NbC6r9sjeIZ6RVQ4g3RZIYvezhcl4TQ=="],
+
+ "@tauri-apps/cli-darwin-x64": ["@tauri-apps/[email protected]", "", { "os": "darwin", "cpu": "x64" }, "sha512-uFsGQAAfuyz1k/yGLmkWfkBlgKAqZfxqlHmLWx81QU27RJWfmbNHCIq8T8w1e+VClleIuZUjpHWfoE4E3DLo3A=="],
+
+ "@tauri-apps/cli-linux-arm-gnueabihf": ["@tauri-apps/[email protected]", "", { "os": "linux", "cpu": "arm" }, "sha512-IaHZn5CdBL21oUmjiVOS1ctw6Ip1O0pjp70FwOWmYz1myWe0SY96ZIj2FYf7pT0m8bI2h/hrs5ZbEXXh44/MkQ=="],
+
+ "@tauri-apps/cli-linux-arm64-gnu": ["@tauri-apps/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-N41/ukTRVe6XSuUTESuFdGeOW2i7k62tK+6gHK5Kd5/q5RPvvi19GaWAVPPb9u95HSGmTChSolBfzynUsssFaA=="],
+
+ "@tauri-apps/cli-linux-arm64-musl": ["@tauri-apps/[email protected]", "", { "os": "linux", "cpu": "arm64" }, "sha512-v277UnT/fB64xAfSroL5N3Km3tLmvATWqJJw/wRI+g6o+HkeD0slyE7gOhNs1MbjE41R7bQOTxMVoL3aomUJmw=="],
+
+ "@tauri-apps/cli-linux-riscv64-gnu": ["@tauri-apps/[email protected]", "", { "os": "linux", "cpu": "none" }, "sha512-qqgNkQ2u1yZHxjhxsZaxUtRDW8dIqIYm33rx/mzwQv0SfY9x1B+iraj8vWeFiXjjSVVhEMepXSOts1TqPzvXNQ=="],
+
+ "@tauri-apps/cli-linux-x64-gnu": ["@tauri-apps/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-2VRNWl84FOH0m2giiDkO2h0QXlcMJeX+zJDpI5kDIQAx6s+geF3v48F4DXfJez4GS/FdoDGnPnw1C2iYGbQ7bQ=="],
+
+ "@tauri-apps/cli-linux-x64-musl": ["@tauri-apps/[email protected]", "", { "os": "linux", "cpu": "x64" }, "sha512-o9GyhYor/nc7xarmwDE3ka2szuW3uuZzXjHWh64Q8YX5AtSgxdQkFWzrY4O8KiGtVNvFBI14H3Q49Qj5TOIP/A=="],
+
+ "@tauri-apps/cli-win32-arm64-msvc": ["@tauri-apps/[email protected]", "", { "os": "win32", "cpu": "arm64" }, "sha512-ld5Ehb598m0VkYyylRPNeCFsBe/km0jxis6KgMpl3IGY6I/i1RwQXO05I1AsXUXO2WC6AvB/Lw4qTf/asiuEiQ=="],
+
+ "@tauri-apps/cli-win32-ia32-msvc": ["@tauri-apps/[email protected]", "", { "os": "win32", "cpu": "ia32" }, "sha512-12Hxi0XX/H5VFxO/bGgHkFWhml9VMgEOu9CidjeCeTNQ1l6fpUlbiGgSP7CLI3PFtW9/FfbeHieZ+kyWK5H7CA=="],
+
+ "@tauri-apps/cli-win32-x64-msvc": ["@tauri-apps/[email protected]", "", { "os": "win32", "cpu": "x64" }, "sha512-+vDiqBIU5dMISg/wNvX3sF+ZHfgJGJ5T0AcO+EHNXV9GGAG+P5fzodlDXD3QdKCRgZxMoCm5PPvj3BqLNjBthw=="],
+
"@tauri-apps/plugin-deep-link": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.11.0" } }, "sha512-u0SKOUHnJ1wqeqXsDFq2+kASCBj9xxbG0g9XZWPy9SOmU4wXtp6b/wiYpm6oH6/5fBTQsLqnLhIvqLBRpgHJlA=="],
"@tauri-apps/plugin-opener": ["@tauri-apps/[email protected]", "", { "dependencies": { "@tauri-apps/api": "^2.11.0" } }, "sha512-1HnPkb+AmgO29HBazm4uPLKB+r7zzcTBW1d0fyYp1uP+jwtpoiNDGKMMzz58SFp49nOIrxdE3aUJtT57lfO9CQ=="],
diff --git a/package.json b/package.json
index 74e1136..7d63d11 100644
--- a/package.json
+++ b/package.json
@@ -13,6 +13,7 @@
"start": "bun run --filter @musicapp/server start",
"migrate": "bun run --filter @musicapp/server migrate",
"typecheck": "bun run --filter '*' typecheck",
+ "tauri": "tauri",
"desktop:dev": "cd apps/desktop/src-tauri && cargo tauri dev",
"desktop:build": "cd apps/desktop/src-tauri && cargo tauri build",
"android:init": "cd apps/desktop/src-tauri && cargo tauri android init",
@@ -23,6 +24,7 @@
"@dotenvx/dotenvx": "^1.0.0"
},
"devDependencies": {
+ "@tauri-apps/cli": "^2",
"concurrently": "^9.2.4",
"typescript": "^5.9.3",
"@types/bun": "^1.3.14"