Skip to content

Commit f2428ef

Browse files
authored
pnpm: Add windows build script (#20)
* add build script for Windows platform Add a new script `build:windows` to support building the application for the Windows platform. * add Windows build instructions Add instructions for building the project on Windows using `pnpm`. * docs: update build command in documentation for windows
1 parent 45a191e commit f2428ef

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

docs/Building.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,9 @@ to add `--no-sandbox --no-zygote` to the launch parameters for Vermilion to run:
1010
```sh
1111
./dist/vermilion-0.1.0.AppImage --no-zygote --no-sandbox
1212
```
13+
14+
For windows, run:
15+
```sh
16+
pnpm i
17+
pnpm build:windows
18+
```

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"build": "electron-vite build",
1717
"postinstall": "electron-builder install-app-deps",
1818
"build:unpack": "pnpm run build && electron-builder --dir",
19-
"build:linux": "pnpm run build && electron-builder --linux"
19+
"build:linux": "pnpm run build && electron-builder --linux",
20+
"build:windows": "pnpm run build && electron-builder --win"
2021
},
2122
"dependencies": {
2223
"@electron-toolkit/preload": "^3.0.1",

0 commit comments

Comments
 (0)