diff --git a/DesktopApplicationDevelopmentGuide.md b/DesktopApplicationDevelopmentGuide.md index ccb62f736..aaefd5b1b 100644 --- a/DesktopApplicationDevelopmentGuide.md +++ b/DesktopApplicationDevelopmentGuide.md @@ -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. diff --git a/DeveloperGuide.md b/DeveloperGuide.md index 5d347bbaa..0e9ce6c95 100644 --- a/DeveloperGuide.md +++ b/DeveloperGuide.md @@ -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 diff --git a/frontend/package.json b/frontend/package.json index 6b9347eab..0238682ef 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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": [