|
|
@ -5,17 +5,66 @@ |
|
|
|
"main": "main.js", |
|
|
|
"main": "main.js", |
|
|
|
"scripts": { |
|
|
|
"scripts": { |
|
|
|
"start": "electron .", |
|
|
|
"start": "electron .", |
|
|
|
"dev": "concurrently \"cd src/ui && cross-env BROWSER=none npm start\" \"wait-on tcp:3000 && electron .\"" |
|
|
|
"dev": "concurrently \"cd src/ui && cross-env BROWSER=none npm start\" \"wait-on tcp:3000 && electron .\"", |
|
|
|
|
|
|
|
"build": "npm i && npm run build:assets && npm run build:react", |
|
|
|
|
|
|
|
"build:react": "cd src/ui && npm i && npm run build", |
|
|
|
|
|
|
|
"build:assets": "icon-gen -i assets/appIcon.svg -o ./assets --icns && xattr -cr assets/appIcon.svg", |
|
|
|
|
|
|
|
"dist": "npm run clean && npm run build && electron-builder -m", |
|
|
|
|
|
|
|
"clean": "rm -rf node_modules && rm -rf src/public/build/* && rm -rf src/public/node_modules && rm -rf dist && rm -f assets/*.icns" |
|
|
|
}, |
|
|
|
}, |
|
|
|
"author": "MikO <miko@massivedynamic.eu>", |
|
|
|
"author": "Michael Ochmann <miko@massivedynamic.eu>", |
|
|
|
"license": "MIT", |
|
|
|
"license": "MIT", |
|
|
|
"dependencies": { |
|
|
|
"dependencies": { |
|
|
|
"electron": "^21.0.0", |
|
|
|
|
|
|
|
"marked": "^4.1.0" |
|
|
|
"marked": "^4.1.0" |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
"build": { |
|
|
|
|
|
|
|
"asar": false, |
|
|
|
|
|
|
|
"productName": "ation", |
|
|
|
|
|
|
|
"appId": "eu.massivedynamic.ation", |
|
|
|
|
|
|
|
"directories": { |
|
|
|
|
|
|
|
"buildResources": "assets" |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"files": [ |
|
|
|
|
|
|
|
"**/*", |
|
|
|
|
|
|
|
"assets/*.svg", |
|
|
|
|
|
|
|
"package.json" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"mac": { |
|
|
|
|
|
|
|
"category": "public.app-category.productivity", |
|
|
|
|
|
|
|
"target": [ |
|
|
|
|
|
|
|
"dmg", |
|
|
|
|
|
|
|
"zip" |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"icon": "assets/app.icns", |
|
|
|
|
|
|
|
"darkModeSupport": true |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
"dmg": { |
|
|
|
|
|
|
|
"background": "assets/dmg_background.png", |
|
|
|
|
|
|
|
"iconSize": 50, |
|
|
|
|
|
|
|
"contents": [ |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"x": 160, |
|
|
|
|
|
|
|
"y": 250 |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
"x": 360, |
|
|
|
|
|
|
|
"y": 250, |
|
|
|
|
|
|
|
"type": "link", |
|
|
|
|
|
|
|
"path": "/Applications" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
"window": { |
|
|
|
|
|
|
|
"width": 540, |
|
|
|
|
|
|
|
"height": 400 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
"devDependencies": { |
|
|
|
"devDependencies": { |
|
|
|
|
|
|
|
"electron": "^21.0.0", |
|
|
|
"concurrently": "^7.4.0", |
|
|
|
"concurrently": "^7.4.0", |
|
|
|
"cross-env": "^7.0.3", |
|
|
|
"cross-env": "^7.0.3", |
|
|
|
|
|
|
|
"electron-builder": "^23.3.3", |
|
|
|
|
|
|
|
"icon-gen": "^3.0.1", |
|
|
|
"wait-on": "^6.0.1" |
|
|
|
"wait-on": "^6.0.1" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|