Stirling-PDF/.github/workflows
ConnorYoh 4c0c9b28ef
V2 Tauri integration (#3854)
# Description of Changes

Please provide a summary of the changes, including:

## Add PDF File Association Support for Tauri App

  ### 🎯 **Features Added**
  - PDF file association configuration in Tauri
  - Command line argument detection for opened files
  - Automatic file loading when app is launched via "Open with"
  - Cross-platform support (Windows/macOS)

  ### 🔧 **Technical Changes**
  - Added `fileAssociations` in `tauri.conf.json` for PDF files
  - New `get_opened_file` Tauri command to detect file arguments
  - `fileOpenService` with Tauri fs plugin integration
  - `useOpenedFile` hook for React integration
  - Improved backend health logging during startup (reduced noise)

  ### 🧪 **Testing**
See 
* https://v2.tauri.app/start/prerequisites/
*
[DesktopApplicationDevelopmentGuide.md](DesktopApplicationDevelopmentGuide.md)

  ```bash
  # Test file association during development:
  
  cd frontend
  npm install
  cargo tauri dev --no-watch -- -- "path/to/file.pdf"
  ```

 For production testing:
  1. Build: npm run tauri build
  2. Install the built app
  3. Right-click PDF → "Open with" → Stirling-PDF

  🚀 User Experience

- Users can now double-click PDF files to open them directly in
Stirling-PDF
- Files automatically load in the viewer when opened via file
association
  - Seamless integration with OS file handling

---

## Checklist

### General

- [ ] I have read the [Contribution
Guidelines](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/CONTRIBUTING.md)
- [ ] I have read the [Stirling-PDF Developer
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md)
(if applicable)
- [ ] I have read the [How to add new languages to
Stirling-PDF](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md)
(if applicable)
- [ ] I have performed a self-review of my own code
- [ ] My changes generate no new warnings

### Documentation

- [ ] I have updated relevant docs on [Stirling-PDF's doc
repo](https://github.com/Stirling-Tools/Stirling-Tools.github.io/blob/main/docs/)
(if functionality has heavily changed)
- [ ] I have read the section [Add New Translation
Tags](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/HowToAddNewLanguage.md#add-new-translation-tags)
(for new translation tags only)

### UI Changes (if applicable)

- [ ] Screenshots or videos demonstrating the UI changes are attached
(e.g., as comments or direct attachments in the PR)

### Testing (if applicable)

- [ ] I have tested my changes locally. Refer to the [Testing
Guide](https://github.com/Stirling-Tools/Stirling-PDF/blob/main/DeveloperGuide.md#6-testing)
for more details.

---------

Co-authored-by: Connor Yoh <connor@stirlingpdf.com>
Co-authored-by: James Brunton <james@stirlingpdf.com>
Co-authored-by: James Brunton <jbrunton96@gmail.com>
2025-11-05 11:44:59 +00:00
..
ai_pr_title_review.yml build(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1 (#4538) 2025-09-28 21:22:40 +01:00
auto-labelerV2.yml build(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1 (#4538) 2025-09-28 21:22:40 +01:00
build.yml Merge remote-tracking branch 'origin/V2' into mainToV2 2025-11-03 23:01:41 +00:00
check_properties.yml build(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1 (#4538) 2025-09-28 21:22:40 +01:00
codeql.yml-disabled Bump: Harden Runner from v2.10.2 to v2.10.3 (#2686) 2025-01-13 22:26:05 +00:00
dependency-review.yml V2 Tauri integration (#3854) 2025-11-05 11:44:59 +00:00
deploy-on-v2-commit.yml Revert "npm login" (#4299) 2025-08-26 14:06:29 +01:00
frontend-licenses-update.yml ci(frontend): update licenses workflow dependencies and Node.js version (#4520) 2025-09-29 12:21:48 +01:00
licenses-update.yml build(deps): bump gradle/actions from 4.4.4 to 5.0.0 (#4605) 2025-10-06 10:47:14 +01:00
manage-label.yml build(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1 (#4538) 2025-09-28 21:22:40 +01:00
multiOSReleases.yml Merge remote-tracking branch 'origin/V2' into mainToV2 2025-10-12 20:45:25 +01:00
PR-Auto-Deploy-V2.yml Update PDF.js integration and dependencies (#4360) 2025-09-24 13:07:27 +01:00
PR-Demo-cleanup.yml build(deps): bump step-security/harden-runner from 2.13.0 to 2.13.1 (#4538) 2025-09-28 21:22:40 +01:00
PR-Demo-Comment-with-react.yml conflict fix again 2025-10-12 21:13:01 +01:00
pre_commit.yml fix(ci): 🛡️ mitigate CVE-2025-8869 by enforcing wheels-only pip installs and upgrading pinned dependencies (#4598) 2025-10-04 12:50:37 +01:00
push-docker.yml build(deps): bump gradle/actions from 4.4.4 to 5.0.0 (#4605) 2025-10-06 10:47:14 +01:00
releaseArtifacts.yml build(deps): bump softprops/action-gh-release from 2.3.3 to 2.3.4 (#4602) 2025-10-06 10:47:37 +01:00
scorecards.yml build(deps): bump github/codeql-action from 3.30.5 to 3.30.6 (#4601) 2025-10-06 10:47:49 +01:00
sonarqube.yml build(deps): bump gradle/actions from 4.4.4 to 5.0.0 (#4605) 2025-10-06 10:47:14 +01:00
stale.yml build(deps): bump actions/stale from 10.0.0 to 10.1.0 (#4603) 2025-10-06 10:47:53 +01:00
swagger.yml build(deps): bump gradle/actions from 4.4.4 to 5.0.0 (#4605) 2025-10-06 10:47:14 +01:00
sync_files_v2.yml test (#4559) 2025-10-01 00:03:26 +01:00
sync_files.yml fix(ci): 🛡️ mitigate CVE-2025-8869 by enforcing wheels-only pip installs and upgrading pinned dependencies (#4598) 2025-10-04 12:50:37 +01:00
tauri-build.yml V2 Tauri integration (#3854) 2025-11-05 11:44:59 +00:00
testdriver.yml build(deps): bump gradle/actions from 4.4.4 to 5.0.0 (#4605) 2025-10-06 10:47:14 +01:00