From fcf684c9c4a955581e23087df3b2b0fbeeb81538 Mon Sep 17 00:00:00 2001 From: spark Date: Sun, 18 Oct 2026 10:24:56 +0100 Subject: [PATCH] Desktop 0.3.18 finds the ONNX bundle script from the directory Tauri actually uses. The 0.3.17 binary linked, then bundling stopped because the script path was three levels up from the wrong folder. --- apps/desktop/package.json | 2 +- apps/desktop/src-tauri/Cargo.toml | 2 +- apps/desktop/src-tauri/tauri.conf.json | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/desktop/package.json b/apps/desktop/package.json index ff90ad8..0ff1be5 100644 --- a/apps/desktop/package.json +++ b/apps/desktop/package.json @@ -1,6 +1,6 @@ { "name": "@photoreport/desktop", - "version": "0.3.17", + "version": "0.3.18", "private": true, "type": "module", "scripts": { diff --git a/apps/desktop/src-tauri/Cargo.toml b/apps/desktop/src-tauri/Cargo.toml index 1d3b229..d11f203 100644 --- a/apps/desktop/src-tauri/Cargo.toml +++ b/apps/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "photoreport-desktop" -version = "0.3.17" +version = "0.3.18" edition = "2024" publish = false description = "PhotoReport desktop: the web app in a native shell, with keychain sign-in and (later) local FTP and the native engine." diff --git a/apps/desktop/src-tauri/tauri.conf.json b/apps/desktop/src-tauri/tauri.conf.json index 7386b76..d018f08 100644 --- a/apps/desktop/src-tauri/tauri.conf.json +++ b/apps/desktop/src-tauri/tauri.conf.json @@ -1,14 +1,14 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "PhotoReport", - "version": "0.3.17", + "version": "0.3.18", "identifier": "pt.photoreport.desktop", "build": { "devUrl": "http://localhost:5173", "frontendDist": "../../app/dist", "beforeDevCommand": "pnpm --filter @photoreport/app dev", "beforeBuildCommand": "pnpm --filter @photoreport/app build", - "beforeBundleCommand": "bash ../../../infra/desktop/bundle-onnx.sh" + "beforeBundleCommand": "bash -c 'd=\"$PWD\"; while [ \"$d\" != / ] && [ ! -f \"$d/infra/desktop/bundle-onnx.sh\" ]; do d=$(dirname \"$d\"); done; exec bash \"$d/infra/desktop/bundle-onnx.sh\"'" }, "app": { "windows": [ -- 2.47.3