Skip to content
Open
Show file tree
Hide file tree
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 Apr 19, 2026
f5c6fd1
clean setup and ckeleton created at gitnexus-desktop
prajapatisparsh Apr 19, 2026
31755de
wired createserver 4747 into main.ts added scripts added predev hook
prajapatisparsh Apr 19, 2026
b95eebc
fix(desktop): restore native OS window controls (minimize/maximize/cl…
prajapatisparsh Apr 19, 2026
6c644e3
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh Apr 19, 2026
21fb1b9
style(desktop): format gitnexus-desktop package
prajapatisparsh Apr 20, 2026
c5238de
fix(desktop): correct packaged shell assets
prajapatisparsh Apr 20, 2026
a84380a
fix(desktop): validate unpacked app startup in packaging flow
prajapatisparsh Apr 20, 2026
89f038f
fix(desktop): ensure-gitnexus-runtime: stop stale backend, repair run…
prajapatisparsh Apr 20, 2026
558d7c3
Merge branch 'main' into feat/Desktop-app
prajapatisparsh Apr 21, 2026
ed83fd3
feat(desktop): enhance packaging workflow and add smoke test for desk…
prajapatisparsh Apr 21, 2026
fff89fb
fix(desktop): update server health URLs to point to the info endpoint
prajapatisparsh Apr 21, 2026
9ee1d97
fix(build): replace execSync with execFileSync for TypeScript compila…
prajapatisparsh Apr 22, 2026
7c4e8ec
feat(desktop): add native module rebuilding for Electron and handle s…
prajapatisparsh Apr 22, 2026
1274b4b
feat(desktop): update dependency caching and installation steps for i…
prajapatisparsh Apr 22, 2026
610a102
feat: add validation job to GitHub Actions for desktop packaging
prajapatisparsh Apr 24, 2026
13eeab4
feat(desktop): improve native module rebuild process by checking for …
prajapatisparsh Apr 25, 2026
2afa112
Merge branch 'main' into feat/Desktop-app
prajapatisparsh Apr 25, 2026
25d6daf
feat: add electron-vite configuration and automated packaging script …
prajapatisparsh Apr 25, 2026
1775c90
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh Apr 25, 2026
030fe7d
Merge branch 'main' into feat/Desktop-app
prajapatisparsh Apr 26, 2026
7ee45d6
feat: update Node.js version to 22 and adjust electron-rebuild depend…
prajapatisparsh Apr 27, 2026
b432045
Merge : Updating my branch from main branch
prajapatisparsh May 4, 2026
6447777
feat: enable/disable MCP HTTP based on desktop runtime environment
prajapatisparsh May 5, 2026
8747d81
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 5, 2026
ce7eb50
refactor: remove unused functions from finalize-algorithm.ts and add …
prajapatisparsh May 5, 2026
1290973
refactor: update build scripts to use compileTypeScriptProject functi…
prajapatisparsh May 5, 2026
e5eb9ea
fix(server): use ipKeyGenerator for IPv6-safe rate-limit key generati…
prajapatisparsh May 5, 2026
aec337d
fix: remove corrupt @ladybugdb entry from package-lock.json causing n…
prajapatisparsh May 5, 2026
cfdcef0
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 8, 2026
ea31357
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 9, 2026
adecb88
Merge branch 'main' into feat/Desktop-app
magyargergo May 9, 2026
6db5b32
fix(build): add missing execSync import to build.js
prajapatisparsh May 9, 2026
4362d96
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 9, 2026
c45e7c7
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 9, 2026
f078b79
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 10, 2026
2a00970
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh May 10, 2026
08722e3
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 10, 2026
22c728b
Build Windows NSIS
prajapatisparsh May 10, 2026
fe0a2c3
Merge branch 'main' into feat/Desktop-app
magyargergo May 10, 2026
e39f955
refactor(package.mjs): remove deprecated Node version checks and rebu…
prajapatisparsh May 10, 2026
c95d2dc
chore(workflow): update paths in desktop packaging workflow to includ…
prajapatisparsh May 10, 2026
8ae9ebd
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 10, 2026
16c383b
feat(workflow): enhance desktop packaging with artifact attestation a…
prajapatisparsh May 10, 2026
28ba9bb
feat(runtime): bundle node.exe for Windows to prevent access violatio…
prajapatisparsh May 11, 2026
a5b4cda
Merge branch 'main' into feat/Desktop-app
magyargergo May 11, 2026
7c712d2
Merge branch 'main' into feat/Desktop-app
magyargergo May 11, 2026
a966627
feat: update electron-builder configuration to include node binary in…
prajapatisparsh May 11, 2026
efc3f95
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 11, 2026
76d50ca
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh May 11, 2026
4850be0
feat(build): implement afterPack hook to copy node.exe for Windows bu…
prajapatisparsh May 11, 2026
0594af5
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh May 12, 2026
b4d8962
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 12, 2026
d8ca776
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 12, 2026
b88200a
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 12, 2026
82b8488
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 12, 2026
3035359
Merge branch 'main' into feat/Desktop-app
magyargergo May 13, 2026
d0e4855
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 13, 2026
2d4ee30
Merge branch 'main' into feat/Desktop-app
magyargergo May 13, 2026
fd48347
Merge branch 'main' into feat/Desktop-app
magyargergo May 13, 2026
6832f13
Merge branch 'main' into feat/Desktop-app
magyargergo May 13, 2026
87ce4ea
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 13, 2026
25a1b85
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 13, 2026
e923c59
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 13, 2026
2e83d2a
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
589142b
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
b003067
Merge branch 'main' into feat/Desktop-app
magyargergo May 14, 2026
510c190
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
f18fff0
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
fc5b571
Merge branch 'main' into feat/Desktop-app
magyargergo May 14, 2026
51170d5
Merge branch 'main' into feat/Desktop-app
magyargergo May 14, 2026
9e23c80
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
7fdfd91
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
a1b7098
Merge origin/feat/Desktop-app into feat/Desktop-app
prajapatisparsh May 14, 2026
80c93d6
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 14, 2026
4e8879b
fix(build): Resolve merge conflict in gitnexus/scripts/build.js
prajapatisparsh May 14, 2026
a815081
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 15, 2026
70d9955
fix(deps): Sync package-lock.json with package.json in gitnexus
prajapatisparsh May 15, 2026
737cdaf
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 15, 2026
67e1482
fix(desktop): Update app icon for desktop build
prajapatisparsh May 15, 2026
27b53bc
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 15, 2026
aa36869
fix(validation): Simplify keyGenerator function in createRouteLimiter
prajapatisparsh May 16, 2026
bc7729b
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 16, 2026
6ca5469
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 16, 2026
74cf9d9
Merge branch 'main' into feat/Desktop-app
magyargergo May 16, 2026
7fce359
Merge branch 'main' into feat/Desktop-app
magyargergo May 16, 2026
8618805
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 16, 2026
26fbc97
Merge branch 'main' into feat/Desktop-app
magyargergo May 16, 2026
312beb0
Merge branch 'main' into feat/Desktop-app
magyargergo May 16, 2026
fb7c8e4
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 18, 2026
e9dc016
Merge branch 'main' into feat/Desktop-app
magyargergo May 18, 2026
170a625
fix(server): restore IPv6 /56 comment and fix rate-limit fallback bucket
prajapatisparsh May 18, 2026
4b3fe80
fix(desktop): restart GitNexus server on macOS activate when all wind…
prajapatisparsh May 18, 2026
377a96f
fix(desktop): pin transitive deps in runtime repair via npm ci
prajapatisparsh May 18, 2026
b9b3ec6
fix(security): resolve CodeQL findings in package.mjs build script
prajapatisparsh May 18, 2026
6ddb5ab
chore(web): remove stale scrollbar-thin className references
prajapatisparsh May 18, 2026
14ed9a8
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 18, 2026
2283074
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 18, 2026
d3ba066
fix(build): extend npm ci and build timeouts for gitnexus-web to prev…
prajapatisparsh May 19, 2026
6435cad
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 19, 2026
f08f65c
fix(desktop): drop --ignore-scripts so lbugjs.node install hook runs
prajapatisparsh May 19, 2026
285fd6a
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 19, 2026
d480f74
feat(desktop): add ICO icon support for Windows and update icon path
prajapatisparsh May 19, 2026
81eb63c
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 19, 2026
d88092c
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 20, 2026
c71e4fc
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 20, 2026
04d678f
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 20, 2026
ded4a06
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 20, 2026
317192d
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 21, 2026
30ad92e
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 21, 2026
c2ee1b3
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 21, 2026
f45fc30
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 21, 2026
09cff2a
Merge branch 'main' into feat/Desktop-app
magyargergo May 21, 2026
16604d5
Merge branch 'main' into feat/Desktop-app
magyargergo May 22, 2026
72c9fa7
chore(deps): update brace-expansion to version 5.0.6
prajapatisparsh May 23, 2026
ba882ff
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 23, 2026
7335125
Merge branch 'main' of https://github.com/prajapatisparsh/GitNexus in…
prajapatisparsh May 23, 2026
9451055
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 23, 2026
71a2e4b
Merge branch 'feat/Desktop-app' of https://github.com/prajapatisparsh…
prajapatisparsh May 23, 2026
28768d9
feat(desktop): Dynamic port selection via --port 0 + stdout signal
prajapatisparsh May 23, 2026
9b04424
fix(deps): Install tree-sitter-kotlin for Kotlin ingestion
prajapatisparsh May 23, 2026
08f0c52
Merge branch 'main' into feat/Desktop-app
prajapatisparsh May 23, 2026
6041a8b
Merge branch 'main' into feat/Desktop-app
magyargergo May 25, 2026
7951472
Merge branch 'main' into feat/Desktop-app
magyargergo Jun 3, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 178 additions & 0 deletions .github/workflows/desktop-packaging.yml
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
Comment thread
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-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
Comment thread
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 }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,11 @@ gitnexus/vendor/**/node_modules/

local_docs/

undefined/
_bmad/
# Local agent scratch / review prompts (never commit)
.tmp/
.agents/
.context/
gitnexus/web/
.pi/
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ fi

if [ -n "$CLI_CHANGED" ]; then
echo "pre-commit: typechecking gitnexus..."
cd "$ROOT/gitnexus" && ./node_modules/.bin/tsc --noEmit || exit 1
cd "$ROOT" && ./node_modules/.bin/tsc -p gitnexus/tsconfig.json --noEmit || exit 1
fi

echo "pre-commit: all checks passed"
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export default [
{
ignores: [
'**/dist/**',
'gitnexus-desktop/release/**',
'**/node_modules/**',
'**/coverage/**',
'gitnexus/vendor/**',
Expand Down
2 changes: 2 additions & 0 deletions gitnexus-desktop/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist/
release/
32 changes: 32 additions & 0 deletions gitnexus-desktop/README.md
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 added gitnexus-desktop/build/icon.ico
Binary file not shown.
Binary file added gitnexus-desktop/build/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 59 additions & 0 deletions gitnexus-desktop/electron-builder.yml
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
46 changes: 46 additions & 0 deletions gitnexus-desktop/electron.vite.config.ts
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'),
},
},
},
},
};
Loading
Loading