File tree Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Expand file tree Collapse file tree 2 files changed +28
-1
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,30 @@ chmod +x stealth-run.sh
135
135
136
136
** IMPORTANT** : The application window will be invisible by default! Use Ctrl+B (or Cmd+B on Mac) to toggle visibility.
137
137
138
+ ### Building Distributable Packages
139
+
140
+ To create installable packages for distribution:
141
+
142
+ ** For macOS (DMG):**
143
+ ``` bash
144
+ # Using npm
145
+ npm run package-mac
146
+
147
+ # Or using yarn
148
+ yarn package-mac
149
+ ```
150
+
151
+ ** For Windows (Installer):**
152
+ ``` bash
153
+ # Using npm
154
+ npm run package-win
155
+
156
+ # Or using yarn
157
+ yarn package-win
158
+ ```
159
+
160
+ The packaged applications will be available in the ` release ` directory.
161
+
138
162
** What the scripts do:**
139
163
- Create necessary directories for the application
140
164
- Clean previous builds to ensure a fresh start
Original file line number Diff line number Diff line change 7
7
"dev" : " cross-env NODE_ENV=development npm run clean && concurrently \" tsc -w -p tsconfig.electron.json\" \" vite\" \" wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\" " ,
8
8
"start" : " cross-env NODE_ENV=development concurrently \" tsc -p tsconfig.electron.json\" \" vite\" \" wait-on -t 30000 http://localhost:54321 && electron ./dist-electron/main.js\" " ,
9
9
"build" : " cross-env NODE_ENV=production rimraf dist dist-electron && vite build && tsc -p tsconfig.electron.json" ,
10
- "run-prod" : " cross-env NODE_ENV=production electron ./dist-electron/main.js"
10
+ "run-prod" : " cross-env NODE_ENV=production electron ./dist-electron/main.js" ,
11
+ "package" : " yarn build && electron-builder build" ,
12
+ "package-mac" : " yarn build && electron-builder build --mac" ,
13
+ "package-win" : " yarn build && electron-builder build --win"
11
14
},
12
15
"build" : {
13
16
"appId" : " com.chunginlee.interviewcoder" ,
You can’t perform that action at this time.
0 commit comments