Skip to content

Commit 49a6121

Browse files
Update sidecar build scripts for improved output handling
- Modified build commands in `package.json` for Windows, macOS, and Linux to ensure the output executable files are renamed appropriately after the build process. - Enhanced the build process to streamline the deployment of the backend executables in the client application.
1 parent 53207f4 commit 49a6121

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

client/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"tauri:dev": "tauri dev",
1515
"tauri:build": "tauri build",
1616
"build:sidecar": "node -e \"const p=process.platform;const m={win32:'winos',darwin:'macos',linux:'linux'};require('child_process').execSync('npm run build:sidecar-'+m[p],{stdio:'inherit'})\"",
17-
"build:sidecar-winos": "cd ../backend && uv run pyinstaller -y --clean -n backend-x86_64-pc-windows-msvc --distpath ../client/src-tauri/bin/backend tauri_sidecar.spec",
18-
"build:sidecar-macos": "cd ../backend && uv run pyinstaller -y --clean -n backend-aarch64-apple-darwin --distpath ../client/src-tauri/bin/backend tauri_sidecar.spec",
19-
"build:sidecar-linux": "cd ../backend && uv run pyinstaller -y --clean -n backend-x86_64-unknown-linux-gnu --distpath ../client/src-tauri/bin/backend tauri_sidecar.spec"
17+
"build:sidecar-winos": "cd ../backend && uv run pyinstaller -y --clean --distpath ../client/src-tauri/bin/backend tauri_sidecar.spec && move ..\\client\\src-tauri\\bin\\backend\\backend.exe ..\\client\\src-tauri\\bin\\backend\\backend-x86_64-pc-windows-msvc.exe",
18+
"build:sidecar-macos": "cd ../backend && uv run pyinstaller -y --clean --distpath ../client/src-tauri/bin/backend tauri_sidecar.spec && mv ../client/src-tauri/bin/backend/backend ../client/src-tauri/bin/backend/backend-aarch64-apple-darwin",
19+
"build:sidecar-linux": "cd ../backend && uv run pyinstaller -y --clean --distpath ../client/src-tauri/bin/backend tauri_sidecar.spec && mv ../client/src-tauri/bin/backend/backend ../client/src-tauri/bin/backend/backend-x86_64-unknown-linux-gnu"
2020
},
2121
"dependencies": {
2222
"@google/genai": "^1.29.0",
@@ -48,4 +48,4 @@
4848
"typescript": "~5.8.2",
4949
"vite": "^6.2.0"
5050
}
51-
}
51+
}

0 commit comments

Comments
 (0)