feat: add electron-builder build configurations and documentation
This commit is contained in:
@@ -79,6 +79,27 @@ Ensure you have the following installed on your machine:
|
||||
|
||||
*All progress is streamed in real-time straight to your dashboard progress bar and system terminal window!*
|
||||
|
||||
### Packaging & Building
|
||||
|
||||
To package and compile **Dekupai** into standalone production binaries or installers for Windows and macOS, we use the integrated `electron-builder` engine:
|
||||
|
||||
* **Build for Windows (NSIS Standalone Installer .exe)**:
|
||||
```bash
|
||||
npm run build:win
|
||||
```
|
||||
*Compiles a single-file executable setup installer inside the `dist/` directory.*
|
||||
|
||||
* **Build for macOS (Standalone DMG Volume .dmg)**:
|
||||
```bash
|
||||
npm run build:mac
|
||||
```
|
||||
*Compiles the installer package for Apple Systems inside the `dist/` directory. (Note: You can compile macOS builds on Windows using target overrides, but native signed builds are best run on a macOS host).*
|
||||
|
||||
* **Compile for Both Platforms Simultaneously**:
|
||||
```bash
|
||||
npm run build:all
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## 📖 Operational Guide
|
||||
|
||||
Generated
+3237
-6
File diff suppressed because it is too large
Load Diff
+26
-2
@@ -4,7 +4,10 @@
|
||||
"description": "Dekupai - Turunçgil AI ile Kusursuz ve Hizli Dekupaj",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
"start": "electron ."
|
||||
"start": "electron .",
|
||||
"build:win": "electron-builder --win",
|
||||
"build:mac": "electron-builder --mac",
|
||||
"build:all": "electron-builder --win --mac"
|
||||
},
|
||||
"keywords": [
|
||||
"background-removal",
|
||||
@@ -15,9 +18,30 @@
|
||||
"author": "Antigravity",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"electron": "^31.3.0"
|
||||
"electron": "^31.3.0",
|
||||
"electron-builder": "^24.13.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"cropperjs": "^1.6.2"
|
||||
},
|
||||
"build": {
|
||||
"appId": "com.turuncgil.dekupai",
|
||||
"productName": "Dekupai",
|
||||
"copyright": "Copyright © 2026 Turunçgil AI",
|
||||
"directories": {
|
||||
"output": "dist"
|
||||
},
|
||||
"files": [
|
||||
"**/*",
|
||||
"!.venv/**",
|
||||
"!node_modules/**"
|
||||
],
|
||||
"win": {
|
||||
"target": "nsis"
|
||||
},
|
||||
"mac": {
|
||||
"target": "dmg",
|
||||
"category": "public.app-category.graphics-design"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user