fix(release): recover desktop r8 failures

This commit is contained in:
Mohamed Boudra
2026-03-12 23:49:07 +07:00
parent 6db99c03cb
commit 36961f83bf
2 changed files with 7 additions and 4 deletions

View File

@@ -381,6 +381,9 @@ jobs:
- name: Attempt manual Linux AppImage fallback
if: env.IS_SMOKE_TAG != 'true' && steps.linux_tauri.outcome == 'failure'
env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
shell: bash
run: |
set -euxo pipefail

View File

@@ -338,9 +338,9 @@ async function ensureSherpaNativePackage(runtimeRoot, bundledNodeRoot) {
"utf8"
)
);
const versionRange = sherpaNodePackageJson.optionalDependencies?.[packageName];
if (!versionRange) {
throw new Error(`Unable to resolve optional sherpa package version for ${packageName}.`);
const packageVersion = sherpaNodePackageJson.version;
if (!packageVersion) {
throw new Error("Missing version in sherpa-onnx-node package.json.");
}
const nodeExecutable = process.platform === "win32"
@@ -356,7 +356,7 @@ async function ensureSherpaNativePackage(runtimeRoot, bundledNodeRoot) {
"--omit=dev",
"--no-package-lock",
"--no-save",
`${packageName}@${versionRange}`,
`${packageName}@${packageVersion}`,
], {
cwd: runtimeRoot,
stdio: "inherit",