50 lines
1.6 KiB
JSON
50 lines
1.6 KiB
JSON
{
|
|
"name": "prospectos-desktop",
|
|
"productName": "ProspectOS",
|
|
"version": "1.0.0",
|
|
"description": "Secure Electron shell for the ProspectOS web UI",
|
|
"main": "main.cjs",
|
|
"private": true,
|
|
"author": "ProspectOS",
|
|
"license": "UNLICENSED",
|
|
"scripts": {
|
|
"verify": "node scripts/verify-packaging.mjs",
|
|
"test": "node --test test/*.test.js",
|
|
"dev": "cross-env ELECTRON_ENABLE_LOGGING=1 PROSPECT_DESKTOP_DEV=1 PROSPECT_API_BASE=http://127.0.0.1:8000 electron .",
|
|
"start": "electron .",
|
|
"build:win": "npm run verify && electron-builder --win nsis portable",
|
|
"dist:win": "npm run build:win"
|
|
},
|
|
"devDependencies": {
|
|
"cross-env": "^7.0.3",
|
|
"electron": "^36.0.0",
|
|
"electron-builder": "^26.0.12"
|
|
},
|
|
"build": {
|
|
"appId": "com.prospectos.desktop",
|
|
"productName": "ProspectOS",
|
|
"artifactName": "ProspectOS-${version}-${arch}.${ext}",
|
|
"directories": { "output": "release", "buildResources": "build-resources" },
|
|
"files": [
|
|
"main.cjs", "preload.cjs", "url-validation.js", "connection.html",
|
|
"desktop-manifest.json", "package.json", "README.md", "scripts/**/*"
|
|
],
|
|
"extraResources": [{ "from": "../web", "to": "web", "filter": ["**/*"] }],
|
|
"win": {
|
|
"target": [
|
|
{ "target": "nsis", "arch": ["x64"] },
|
|
{ "target": "portable", "arch": ["x64"] }
|
|
],
|
|
"publisherName": "ProspectOS"
|
|
},
|
|
"nsis": {
|
|
"oneClick": false,
|
|
"allowToChangeInstallationDirectory": true,
|
|
"createDesktopShortcut": true,
|
|
"createStartMenuShortcut": true,
|
|
"shortcutName": "ProspectOS"
|
|
},
|
|
"portable": { "artifactName": "ProspectOS-${version}-portable.${ext}" }
|
|
}
|
|
}
|