-
Notifications
You must be signed in to change notification settings - Fork 4
Add Electron support as an alternative desktop runtime. #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
a474f04
Refactor app structure and update unit tests
mrquantumoff 2a265de
Add dual Electron and Tauri desktop runtime support
mrquantumoff 9047a4e
Trust electron dependency for Bun and fix updater import
mrquantumoff f4a405d
Fix ESM loading for quadrant-node and enable CurseForge NAPI
mrquantumoff e89f088
Fix Electron runtime metadata and enable proprietary NAPI features
mrquantumoff 8adee43
Accept camelCase host invoke args in Electron
mrquantumoff fa92e76
Add ARM support and docs for Electron builds
mrquantumoff 2f106e4
Return share codes from Tauri commands and bump stable version
mrquantumoff 04e8c42
Switch Flathub sync to Electron AppImage releases
mrquantumoff 32f697f
Add Electron Flatpak packaging notes and refresh lockfile
mrquantumoff 8af8945
Fix Electron deep links, updater channel, and tray asset
mrquantumoff 4455ec7
Fix desktop validation env vars for native addon builds
mrquantumoff 2e9de64
Add Tauri aliases for modpack folder and export commands
mrquantumoff e0c022a
Fix export save dialog and defer deep links until renderer ready
mrquantumoff 4f58425
Pass ETERNAL API token to release packaging
mrquantumoff 754ee26
Add Electron runtime support and install guards
mrquantumoff cd8d5a9
Accept integral JSON numbers for modpack sync timestamps
mrquantumoff 344cd01
Bump appx manifest version to 26.4.1.0
mrquantumoff 770f5f3
Harden sidecar desktop storage and telemetry
mrquantumoff 24c4cdf
Initialize host logging with colog
mrquantumoff fd8180f
Normalize desktop platform names in Electron IPC
mrquantumoff cf73abe
Add Electron sidecar restarts and backend sync updates
mrquantumoff File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: Validate Desktop | ||
|
|
||
| on: | ||
| pull_request: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
| - release | ||
|
|
||
| jobs: | ||
| validate: | ||
| runs-on: ubuntu-24.04 | ||
| env: | ||
| # quadrant-core still uses compile-time env!() for these desktop-only | ||
| # credentials, so CI must provide placeholder values for every Rust build. | ||
| QUADRANT_API_KEY: dev | ||
| QUADRANT_OAUTH2_CLIENT_ID: dev | ||
| QUADRANT_OAUTH2_CLIENT_SECRET: dev | ||
| ETERNAL_API_TOKEN: dev | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup bun | ||
| uses: oven-sh/setup-bun@v2 | ||
|
|
||
| - name: Install Rust stable | ||
| uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| - name: Install Linux desktop dependencies | ||
| run: | | ||
| sudo apt update | ||
| sudo apt install -y libwebkit2gtk-4.1-dev xdg-utils libappindicator3-dev librsvg2-dev patchelf libsecret-1-dev libarchive-tools rpm | ||
|
|
||
| - name: Install frontend dependencies | ||
| run: bun install | ||
|
|
||
| - uses: Swatinem/rust-cache@v2 | ||
| with: | ||
| workspaces: "./src-tauri -> target" | ||
|
|
||
| - name: Build shared renderer | ||
| run: bun run build | ||
|
|
||
| - name: Build native addon | ||
| run: bun run build:napi | ||
|
|
||
| - name: Build Electron shell | ||
| run: node scripts/build-electron.mjs | ||
|
|
||
| - name: Build Tauri shell | ||
| run: bun tauri build --no-bundle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,4 @@ | ||
| { | ||
| "rust-analyzer.cargo.cfgs": [ | ||
| "debug_assertions" | ||
| ], | ||
| "typescript.tsdk": "node_modules\\typescript\\lib" | ||
| } | ||
| "rust-analyzer.cargo.cfgs": ["debug_assertions"], | ||
| "typescript.tsdk": "node_modules\\typescript\\lib" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.