diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4bcbcbd..7354ce4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,6 +48,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }} + PAPAYU_PROJECT_ROOT: ${{ github.workspace }} with: projectPath: desktop/src-tauri includeUpdaterJson: true diff --git a/desktop/src-tauri/tauri.conf.json b/desktop/src-tauri/tauri.conf.json index b332b5b..f29553d 100644 --- a/desktop/src-tauri/tauri.conf.json +++ b/desktop/src-tauri/tauri.conf.json @@ -14,8 +14,8 @@ }, "build": { - "beforeDevCommand": "cd ../ui && npm run dev -- --port 5173", - "beforeBuildCommand": "cd ../ui && npm run build", + "beforeDevCommand": "cd \"${PAPAYU_PROJECT_ROOT:-$HOME/PAPA-YU}/desktop/ui\" && npm run dev -- --port 5173", + "beforeBuildCommand": "cd \"${PAPAYU_PROJECT_ROOT:-$HOME/PAPA-YU}/desktop/ui\" && npm run build", "devUrl": "http://localhost:5173", "frontendDist": "../ui/dist" },