replaced cargo commands with npm scripts for more consistancy

This commit is contained in:
Connor Yoh 2025-07-04 15:41:14 +01:00
parent 9d33557045
commit e9f33c5b50
3 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ scripts\build-tauri-jlink.bat
```bash
cd frontend
npm run tauri build
npm run tauri-build
```
The resulting application will include the bundled JRE and won't require Java to be installed on the target system.

View File

@ -107,7 +107,7 @@ The existing Thymeleaf templates remain in the codebase during development as re
Stirling-PDF can be packaged as a cross-platform desktop application using Tauri with PDF file association support and bundled JRE:
**Quick Start:**
1. **Development/Testing**: `cargo tauri dev --no-watch -- -- "path/to/test.pdf"`
1. **Development/Testing**: `npm run tauri-dev "path/to/test.pdf"`
2. **Building**: See [DesktopApplicationDevelopmentGuide.md](DesktopApplicationDevelopmentGuide.md) for complete build instructions
3. **Features**: File associations, self-contained JRE, cross-platform support

View File

@ -34,9 +34,10 @@
},
"scripts": {
"dev": "vite",
"tauri-dev": "concurrently --kill-others \"tauri dev\" \"cd .. && gradlew bootrun\" ",
"build": "vite build",
"preview": "vite preview"
"preview": "vite preview",
"tauri-dev": "tauri dev --no-watch",
"tauri-build": "tauri build"
},
"eslintConfig": {
"extends": [