-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
20 lines (20 loc) · 1.05 KB
/
package.json
File metadata and controls
20 lines (20 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"name": "{SLUG}",
"version": "1.0.0",
"description": "An (unofficial) native MacOS App for {APPNAME}.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"installsupport": "echo 'Run: [brew install graphicsmagick imagemagick] for additional DMG support.'",
"postinstall": "npm run installsupport",
"build": "npm run nativefier",
"nativefier": "./node_modules/.bin/nativefier --name '{APPNAME}' --platform 'Mac' --min-width {WIDTH} --min-height {HEIGHT} --width {WIDTH} --height {HEIGHT} --flash --verbose --darwin-dark-mode-support --icon ./icon.png '{URL}' ./build",
"dist": "npm run build && mkdir -p dist/ && ./node_modules/.bin/create-dmg './build/{APPNAME}-darwin-x64/{APPNAME}.app' --overwrite --dmg-title='{APPNAME}' --identity='Aubrey Portwood' ./dist/ || true && mv './dist/{APPNAME} 1.0.0.dmg' \"./dist/{APPNAME} $npm_package_version.dmg\""
},
"author": "Aubrey Portwood",
"license": "GPL-3.0-or-later",
"devDependencies": {
"create-dmg": "~5.3.0",
"nativefier": "~10.1.0"
}
}