-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
feat(desktop): add cross-platform Electron shell #985
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
Open
prajapatisparsh
wants to merge
124
commits into
abhigyanpatwari:main
Choose a base branch
from
prajapatisparsh:feat/Desktop-app
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
124 commits
Select commit
Hold shift + click to select a range
cbebb2c
Basic tool setup for development
prajapatisparsh f5c6fd1
clean setup and ckeleton created at gitnexus-desktop
prajapatisparsh 31755de
wired createserver 4747 into main.ts added scripts added predev hook
prajapatisparsh b95eebc
fix(desktop): restore native OS window controls (minimize/maximize/cl…
prajapatisparsh 6c644e3
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh 21fb1b9
style(desktop): format gitnexus-desktop package
prajapatisparsh c5238de
fix(desktop): correct packaged shell assets
prajapatisparsh a84380a
fix(desktop): validate unpacked app startup in packaging flow
prajapatisparsh 89f038f
fix(desktop): ensure-gitnexus-runtime: stop stale backend, repair run…
prajapatisparsh 558d7c3
Merge branch 'main' into feat/Desktop-app
prajapatisparsh ed83fd3
feat(desktop): enhance packaging workflow and add smoke test for desk…
prajapatisparsh fff89fb
fix(desktop): update server health URLs to point to the info endpoint
prajapatisparsh 9ee1d97
fix(build): replace execSync with execFileSync for TypeScript compila…
prajapatisparsh 7c4e8ec
feat(desktop): add native module rebuilding for Electron and handle s…
prajapatisparsh 1274b4b
feat(desktop): update dependency caching and installation steps for i…
prajapatisparsh 610a102
feat: add validation job to GitHub Actions for desktop packaging
prajapatisparsh 13eeab4
feat(desktop): improve native module rebuild process by checking for …
prajapatisparsh 2afa112
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 25d6daf
feat: add electron-vite configuration and automated packaging script …
prajapatisparsh 1775c90
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 030fe7d
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 7ee45d6
feat: update Node.js version to 22 and adjust electron-rebuild depend…
prajapatisparsh b432045
Merge : Updating my branch from main branch
prajapatisparsh 6447777
feat: enable/disable MCP HTTP based on desktop runtime environment
prajapatisparsh 8747d81
Merge branch 'main' into feat/Desktop-app
prajapatisparsh ce7eb50
refactor: remove unused functions from finalize-algorithm.ts and add …
prajapatisparsh 1290973
refactor: update build scripts to use compileTypeScriptProject functi…
prajapatisparsh e5eb9ea
fix(server): use ipKeyGenerator for IPv6-safe rate-limit key generati…
prajapatisparsh aec337d
fix: remove corrupt @ladybugdb entry from package-lock.json causing n…
prajapatisparsh cfdcef0
Merge branch 'main' into feat/Desktop-app
prajapatisparsh ea31357
Merge branch 'main' into feat/Desktop-app
prajapatisparsh adecb88
Merge branch 'main' into feat/Desktop-app
magyargergo 6db5b32
fix(build): add missing execSync import to build.js
prajapatisparsh 4362d96
Merge branch 'main' into feat/Desktop-app
prajapatisparsh c45e7c7
Merge branch 'main' into feat/Desktop-app
prajapatisparsh f078b79
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 2a00970
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh 08722e3
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 22c728b
Build Windows NSIS
prajapatisparsh fe0a2c3
Merge branch 'main' into feat/Desktop-app
magyargergo e39f955
refactor(package.mjs): remove deprecated Node version checks and rebu…
prajapatisparsh c95d2dc
chore(workflow): update paths in desktop packaging workflow to includ…
prajapatisparsh 8ae9ebd
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 16c383b
feat(workflow): enhance desktop packaging with artifact attestation a…
prajapatisparsh 28ba9bb
feat(runtime): bundle node.exe for Windows to prevent access violatio…
prajapatisparsh a5b4cda
Merge branch 'main' into feat/Desktop-app
magyargergo 7c712d2
Merge branch 'main' into feat/Desktop-app
magyargergo a966627
feat: update electron-builder configuration to include node binary in…
prajapatisparsh efc3f95
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 76d50ca
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh 4850be0
feat(build): implement afterPack hook to copy node.exe for Windows bu…
prajapatisparsh 0594af5
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh b4d8962
Merge branch 'main' into feat/Desktop-app
prajapatisparsh d8ca776
Merge branch 'main' into feat/Desktop-app
prajapatisparsh b88200a
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 82b8488
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 3035359
Merge branch 'main' into feat/Desktop-app
magyargergo d0e4855
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 2d4ee30
Merge branch 'main' into feat/Desktop-app
magyargergo fd48347
Merge branch 'main' into feat/Desktop-app
magyargergo 6832f13
Merge branch 'main' into feat/Desktop-app
magyargergo 87ce4ea
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 25a1b85
Merge branch 'main' into feat/Desktop-app
prajapatisparsh e923c59
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 2e83d2a
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 589142b
Merge branch 'main' into feat/Desktop-app
prajapatisparsh b003067
Merge branch 'main' into feat/Desktop-app
magyargergo 510c190
Merge branch 'main' into feat/Desktop-app
prajapatisparsh f18fff0
Merge branch 'main' into feat/Desktop-app
prajapatisparsh fc5b571
Merge branch 'main' into feat/Desktop-app
magyargergo 51170d5
Merge branch 'main' into feat/Desktop-app
magyargergo 9e23c80
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 7fdfd91
Merge branch 'main' into feat/Desktop-app
prajapatisparsh a1b7098
Merge origin/feat/Desktop-app into feat/Desktop-app
prajapatisparsh 80c93d6
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 4e8879b
fix(build): Resolve merge conflict in gitnexus/scripts/build.js
prajapatisparsh a815081
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 70d9955
fix(deps): Sync package-lock.json with package.json in gitnexus
prajapatisparsh 737cdaf
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 67e1482
fix(desktop): Update app icon for desktop build
prajapatisparsh 27b53bc
Merge branch 'main' into feat/Desktop-app
prajapatisparsh aa36869
fix(validation): Simplify keyGenerator function in createRouteLimiter
prajapatisparsh bc7729b
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 6ca5469
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 74cf9d9
Merge branch 'main' into feat/Desktop-app
magyargergo 7fce359
Merge branch 'main' into feat/Desktop-app
magyargergo 8618805
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 26fbc97
Merge branch 'main' into feat/Desktop-app
magyargergo 312beb0
Merge branch 'main' into feat/Desktop-app
magyargergo fb7c8e4
Merge branch 'main' into feat/Desktop-app
prajapatisparsh e9dc016
Merge branch 'main' into feat/Desktop-app
magyargergo 170a625
fix(server): restore IPv6 /56 comment and fix rate-limit fallback bucket
prajapatisparsh 4b3fe80
fix(desktop): restart GitNexus server on macOS activate when all wind…
prajapatisparsh 377a96f
fix(desktop): pin transitive deps in runtime repair via npm ci
prajapatisparsh b9b3ec6
fix(security): resolve CodeQL findings in package.mjs build script
prajapatisparsh 6ddb5ab
chore(web): remove stale scrollbar-thin className references
prajapatisparsh 14ed9a8
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 2283074
Merge branch 'main' into feat/Desktop-app
prajapatisparsh d3ba066
fix(build): extend npm ci and build timeouts for gitnexus-web to prev…
prajapatisparsh 6435cad
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh f08f65c
fix(desktop): drop --ignore-scripts so lbugjs.node install hook runs
prajapatisparsh 285fd6a
Merge branch 'main' into feat/Desktop-app
prajapatisparsh d480f74
feat(desktop): add ICO icon support for Windows and update icon path
prajapatisparsh 81eb63c
Merge branch 'main' into feat/Desktop-app
prajapatisparsh d88092c
Merge branch 'main' into feat/Desktop-app
prajapatisparsh c71e4fc
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 04d678f
Merge branch 'main' into feat/Desktop-app
prajapatisparsh ded4a06
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 317192d
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 30ad92e
Merge branch 'main' into feat/Desktop-app
prajapatisparsh c2ee1b3
Merge branch 'main' into feat/Desktop-app
prajapatisparsh f45fc30
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 09cff2a
Merge branch 'main' into feat/Desktop-app
magyargergo 16604d5
Merge branch 'main' into feat/Desktop-app
magyargergo 72c9fa7
chore(deps): update brace-expansion to version 5.0.6
prajapatisparsh ba882ff
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 7335125
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh 9451055
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 71a2e4b
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh 28768d9
feat(desktop): Dynamic port selection via --port 0 + stdout signal
prajapatisparsh 9b04424
fix(deps): Install tree-sitter-kotlin for Kotlin ingestion
prajapatisparsh 08f0c52
Merge branch 'main' into feat/Desktop-app
prajapatisparsh 6041a8b
Merge branch 'main' into feat/Desktop-app
magyargergo 7951472
Merge branch 'main' into feat/Desktop-app
magyargergo 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
Some comments aren't visible on the classic Files Changed page.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,178 @@ | ||
| name: Desktop Packaging | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - .github/workflows/desktop-packaging.yml | ||
| - gitnexus-desktop/** | ||
| - gitnexus/** | ||
| - gitnexus-web/** | ||
| - gitnexus-shared/** | ||
| workflow_dispatch: | ||
|
|
||
| permissions: {} | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | ||
|
|
||
| jobs: | ||
| validate: | ||
| name: Validate desktop package | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
| cache-dependency-path: gitnexus-desktop/package-lock.json | ||
|
|
||
| - name: Install desktop dependencies | ||
| run: npm ci | ||
| working-directory: gitnexus-desktop | ||
|
|
||
| - name: Typecheck desktop package | ||
| run: npm run typecheck | ||
| working-directory: gitnexus-desktop | ||
|
|
||
| - name: Run desktop unit tests | ||
| run: npm test | ||
| working-directory: gitnexus-desktop | ||
|
|
||
| package: | ||
| name: Build ${{ matrix.label }} | ||
| runs-on: ${{ matrix.os }} | ||
| timeout-minutes: 90 | ||
| needs: validate | ||
| permissions: | ||
| contents: read | ||
| id-token: write | ||
| attestations: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - os: windows-latest | ||
| label: Windows NSIS | ||
| command: npm run build:win | ||
| artifact_name: gitnexus-desktop-windows | ||
| installer_glob: gitnexus-desktop/release/*/GitNexus Desktop Setup *.exe | ||
| artifact_paths: | | ||
| gitnexus-desktop/release/*/GitNexus Desktop Setup *.exe | ||
| gitnexus-desktop/release/*/win-unpacked/** | ||
| - os: macos-latest | ||
| label: macOS DMG | ||
| command: npm run build:mac | ||
| artifact_name: gitnexus-desktop-macos | ||
| installer_glob: gitnexus-desktop/release/*/*.dmg | ||
| artifact_paths: | | ||
| gitnexus-desktop/release/*/*.dmg | ||
| gitnexus-desktop/release/*/mac*/** | ||
| - os: ubuntu-latest | ||
| label: Linux AppImage | ||
| command: npm run build:linux | ||
| artifact_name: gitnexus-desktop-linux | ||
| installer_glob: gitnexus-desktop/release/*/*.AppImage | ||
| artifact_paths: | | ||
| gitnexus-desktop/release/*/*.AppImage | ||
| gitnexus-desktop/release/*/linux-unpacked/** | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
|
github-advanced-security[bot] marked this conversation as resolved.
Fixed
|
||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0 | ||
| with: | ||
| node-version: 22 | ||
| cache: npm | ||
| cache-dependency-path: | | ||
| gitnexus-shared/package-lock.json | ||
| gitnexus/package-lock.json | ||
| gitnexus-web/package-lock.json | ||
| gitnexus-desktop/package-lock.json | ||
|
|
||
| - name: Install shared dependencies | ||
| run: npm ci | ||
| working-directory: gitnexus-shared | ||
|
|
||
| - name: Build shared package | ||
| run: npm run build | ||
| working-directory: gitnexus-shared | ||
|
|
||
| - name: Install GitNexus dependencies | ||
| run: npm ci | ||
| working-directory: gitnexus | ||
|
|
||
| - name: Install web dependencies | ||
| run: npm ci | ||
| working-directory: gitnexus-web | ||
|
|
||
| - name: Install desktop dependencies | ||
| run: npm ci | ||
| working-directory: gitnexus-desktop | ||
|
|
||
| - name: Build unpacked desktop bundle | ||
| run: npm run build:dir | ||
| working-directory: gitnexus-desktop | ||
| env: | ||
| CSC_IDENTITY_AUTO_DISCOVERY: 'false' | ||
|
|
||
| - name: Inspect rebuilt native modules (Windows) | ||
| if: matrix.os == 'windows-latest' | ||
| shell: pwsh | ||
| run: | | ||
| $releaseDir = Get-ChildItem gitnexus-desktop/release -Directory | Sort-Object LastWriteTime -Descending | Select-Object -First 1 | ||
|
|
||
| if (-not $releaseDir) { | ||
| Write-Host "No release directory found." | ||
| exit 0 | ||
| } | ||
|
|
||
| $runtimeNodeModules = Join-Path $releaseDir.FullName 'win-unpacked\resources\gitnexus\node_modules' | ||
| Write-Host "Inspecting native modules under $runtimeNodeModules" | ||
|
|
||
| if (-not (Test-Path $runtimeNodeModules)) { | ||
| Write-Host "Runtime node_modules directory not found." | ||
| exit 0 | ||
| } | ||
|
|
||
| Get-ChildItem $runtimeNodeModules -Recurse -Filter '*.node' | | ||
| Select-Object FullName, LastWriteTime | | ||
| Format-Table -AutoSize | ||
|
|
||
| - name: Start Xvfb | ||
| if: matrix.os == 'ubuntu-latest' | ||
| run: | | ||
| Xvfb :99 -screen 0 1024x768x24 & | ||
| echo "DISPLAY=:99" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Smoke test unpacked desktop bundle | ||
| run: node scripts/smoke-unpacked.mjs | ||
| working-directory: gitnexus-desktop | ||
|
|
||
| - name: Build desktop package | ||
| run: ${{ matrix.command }} | ||
| working-directory: gitnexus-desktop | ||
| env: | ||
| CSC_IDENTITY_AUTO_DISCOVERY: 'false' | ||
|
|
||
| - name: Upload desktop artifacts | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: ${{ matrix.artifact_name }} | ||
| path: ${{ matrix.artifact_paths }} | ||
| if-no-files-found: error | ||
| retention-days: 14 | ||
|
|
||
| - name: Attest desktop artifacts | ||
| if: github.event_name != 'pull_request' | ||
| uses: actions/attest-build-provenance@db473fddc028af60658334401dc6fa3ffd8669fd # v2.3.0 | ||
| with: | ||
| subject-path: ${{ matrix.installer_glob }} | ||
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
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,2 @@ | ||
| dist/ | ||
| release/ |
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,32 @@ | ||
| # GitNexus Desktop | ||
|
|
||
| Electron desktop shell for GitNexus. The app starts the local backend and loads the real `gitnexus-web` UI inside the desktop window. | ||
|
|
||
| ## Commands | ||
|
|
||
| ```bash | ||
| npm run dev | ||
| npm run build:dir | ||
| npm run build:win | ||
| npm run build:mac | ||
| npm run build:linux | ||
| ``` | ||
|
|
||
| - `npm run dev` starts the Electron shell plus the local GitNexus backend. | ||
| - `npm run build:dir` creates an unpacked desktop app directory. | ||
| - `npm run build:win` creates a Windows NSIS installer `.exe`. | ||
| - `npm run build:mac` creates a macOS `.dmg`. | ||
| - `npm run build:linux` creates a Linux `.AppImage`. | ||
| - `npm run smoke:unpacked` launches the latest unpacked desktop build, verifies startup, and exits. | ||
|
|
||
| Build output is written under `gitnexus-desktop/release/<timestamp>/`. | ||
|
|
||
| ## PR Artifacts | ||
|
|
||
| The `Desktop Packaging` GitHub Actions workflow builds an unpacked desktop app, smoke-tests startup, then uploads preview desktop artifacts for pull requests that touch `.github/workflows/desktop-packaging.yml`, `gitnexus-desktop/**`, `gitnexus/**`, `gitnexus-web/**`, or `gitnexus-shared/**`. | ||
|
|
||
| - `gitnexus-desktop-windows` contains the Windows NSIS installer `.exe` and `win-unpacked/`. | ||
| - `gitnexus-desktop-macos` contains the macOS `.dmg` and `mac*/` output. | ||
| - `gitnexus-desktop-linux` contains the Linux `.AppImage` and `linux-unpacked/`. | ||
|
|
||
| GitHub artifact URLs are run-specific and expire, so use the artifact names above from the latest successful PR workflow run. |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,59 @@ | ||
| appId: io.github.abhigyanpatwari.gitnexus.desktop | ||
| productName: GitNexus Desktop | ||
| directories: | ||
| buildResources: build | ||
| files: | ||
| - dist/**/* | ||
| - package.json | ||
| extraResources: | ||
| - from: '${env.GITNEXUS_DESKTOP_WEB_DIST}' | ||
| to: gitnexus-web | ||
| filter: | ||
| - '**/*' | ||
| - from: '${env.GITNEXUS_DESKTOP_GITNEXUS_DIST}' | ||
| to: gitnexus/dist | ||
| filter: | ||
| - '**/*' | ||
| - from: '${env.GITNEXUS_DESKTOP_GITNEXUS_NODE_MODULES}' | ||
| to: gitnexus/node_modules | ||
| filter: | ||
| - '**/*' | ||
| - from: '${env.GITNEXUS_DESKTOP_GITNEXUS_HOOKS}' | ||
| to: gitnexus/hooks | ||
| filter: | ||
| - '**/*' | ||
| - from: '${env.GITNEXUS_DESKTOP_GITNEXUS_SKILLS}' | ||
| to: gitnexus/skills | ||
| filter: | ||
| - '**/*' | ||
| - from: '${env.GITNEXUS_DESKTOP_GITNEXUS_VENDOR}' | ||
| to: gitnexus/vendor | ||
| filter: | ||
| - '**/*' | ||
| - from: '${env.GITNEXUS_DESKTOP_GITNEXUS_PACKAGE_JSON}' | ||
| to: gitnexus/package.json | ||
| - from: 'build/icon.png' | ||
| to: icon.png | ||
| - from: 'build/icon.ico' | ||
| to: icon.ico | ||
| asar: false | ||
| npmRebuild: false | ||
| afterPack: scripts/after-pack.mjs | ||
| win: | ||
| signAndEditExecutable: false | ||
| icon: build/icon.ico | ||
| target: | ||
| - nsis | ||
| mac: | ||
| category: public.app-category.developer-tools | ||
| icon: build/icon.png | ||
| target: | ||
| - dmg | ||
| linux: | ||
| category: Development | ||
| icon: build/icon.png | ||
| target: | ||
| - AppImage | ||
| nsis: | ||
| oneClick: false | ||
| allowToChangeInstallationDirectory: true |
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,46 @@ | ||
| import { resolve } from 'node:path'; | ||
|
|
||
| export default { | ||
| main: { | ||
| build: { | ||
| outDir: 'dist/main', | ||
| rollupOptions: { | ||
| input: { | ||
| main: resolve(__dirname, 'src/main/main.ts'), | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| preload: { | ||
| build: { | ||
| outDir: 'dist/preload', | ||
| rollupOptions: { | ||
| input: { | ||
| preload: resolve(__dirname, 'src/main/preload.ts'), | ||
| }, | ||
| output: { | ||
| format: 'cjs', | ||
| entryFileNames: 'preload.js', | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| renderer: { | ||
| server: { | ||
| host: 'localhost', | ||
| port: 5174, | ||
| strictPort: true, | ||
| watch: { | ||
| ignored: ['**/release/**'], | ||
| }, | ||
| }, | ||
| build: { | ||
| outDir: 'dist/renderer', | ||
| rollupOptions: { | ||
| input: { | ||
| index: resolve(__dirname, 'src/renderer/index.html'), | ||
| }, | ||
| }, | ||
| }, | ||
| }, | ||
| }; |
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.