build(electron): app now builds and runs on macOS as a standalone app

This commit is contained in:
2025-08-10 15:09:23 -04:00
parent 7cfc70632b
commit 63bc3a198d
7 changed files with 139 additions and 14 deletions

View File

@@ -6,7 +6,9 @@
"scripts": {
"start": "electron .",
"dev": "electron .",
"prebuild": "node build-backend.js",
"build": "electron-builder",
"prepack": "node build-backend.js",
"pack": "electron-builder --dir"
},
"repository": {
@@ -23,8 +25,7 @@
"devDependencies": {
"electron": "^31.0.2",
"adm-zip": "^0.5.14",
"electron-builder": "^24.0.0",
"electron-squirrel-startup": "^1.0.1"
"electron-builder": "^24.0.0"
},
"dependencies": {
"fs-extra": "^11.0.0",
@@ -32,7 +33,8 @@
"adm-zip": "^0.5.14",
"@electron/remote": "^2.0.0",
"python-shell": "^5.0.0",
"plotly.js-dist": "^2.26.0"
"plotly.js-dist": "^2.26.0",
"electron-squirrel-startup": "^1.0.1"
},
"build": {
"appId": "com.fourdst.bundlemanager",
@@ -40,6 +42,20 @@
"directories": {
"output": "dist"
},
"icon": "toolkitIcon.png",
"files": [
"**/*",
"node_modules/**/*",
"!node_modules/electron/**/*",
"!node_modules/electron-builder/**/*"
],
"extraResources": [
{
"from": "../build/electron/dist/fourdst-backend/",
"to": "backend/",
"filter": ["**/*"]
}
],
"mac": {
"category": "public.app-category.developer-tools",
"target": [