fix(release): recover desktop r8 failures
This commit is contained in:
@@ -381,6 +381,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Attempt manual Linux AppImage fallback
|
- name: Attempt manual Linux AppImage fallback
|
||||||
if: env.IS_SMOKE_TAG != 'true' && steps.linux_tauri.outcome == 'failure'
|
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
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euxo pipefail
|
set -euxo pipefail
|
||||||
|
|||||||
@@ -338,9 +338,9 @@ async function ensureSherpaNativePackage(runtimeRoot, bundledNodeRoot) {
|
|||||||
"utf8"
|
"utf8"
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
const versionRange = sherpaNodePackageJson.optionalDependencies?.[packageName];
|
const packageVersion = sherpaNodePackageJson.version;
|
||||||
if (!versionRange) {
|
if (!packageVersion) {
|
||||||
throw new Error(`Unable to resolve optional sherpa package version for ${packageName}.`);
|
throw new Error("Missing version in sherpa-onnx-node package.json.");
|
||||||
}
|
}
|
||||||
|
|
||||||
const nodeExecutable = process.platform === "win32"
|
const nodeExecutable = process.platform === "win32"
|
||||||
@@ -356,7 +356,7 @@ async function ensureSherpaNativePackage(runtimeRoot, bundledNodeRoot) {
|
|||||||
"--omit=dev",
|
"--omit=dev",
|
||||||
"--no-package-lock",
|
"--no-package-lock",
|
||||||
"--no-save",
|
"--no-save",
|
||||||
`${packageName}@${versionRange}`,
|
`${packageName}@${packageVersion}`,
|
||||||
], {
|
], {
|
||||||
cwd: runtimeRoot,
|
cwd: runtimeRoot,
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
|
|||||||
Reference in New Issue
Block a user