-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
48 lines (48 loc) · 2.62 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"name": "kiosk-demo-electron",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/syedhassaanahmed/kiosk-demo-electron"
},
"main": "./src/index.js",
"config": {
"binaries": "./dist/kiosk-demo-electron-win32-x64",
"wix": "wine ./node_modules/wixtoolset-compiler/bin"
},
"scripts": {
"start": "electron .",
"postinstall": "cd src && npm install",
"clean": "rimraf ./dist",
"pack": "cross-env DEBUG=electron-packager electron-packager ./src --platform=win32 --arch=x64 --asar --overwrite --out ./dist",
"heat": "wixtoolset-compiler heat --args=\"dir %npm_package_config_binaries% -v -ag -cg ElectronBinaries -var var.SourceDir -dr APPLICATIONROOTDIRECTORY -srd -suid -sfrag -sreg -out ./dist/heat.wxs\"",
"copyScripts": "cross-conf-env copyfiles -f ./tools/scripts/*.* npm_package_config_binaries",
"candle": "wixtoolset-compiler candle --args=\"-v -ext WixUtilExtension -dSourceDir=%npm_package_config_binaries% ./tools/product.wxs ./dist/heat.wxs -out ./dist/\"",
"light": "wixtoolset-compiler light --args=\"-v -ext WixUtilExtension ./dist/product.wixobj ./dist/heat.wixobj -out ./dist/KioskDemoElectron.msi\"",
"build": "run-s heat copyScripts candle light",
"dist": "run-s clean pack build",
"heat:wine": "$npm_package_config_wix/heat.exe dir $npm_package_config_binaries -v -ag -cg ElectronBinaries -var var.SourceDir -dr APPLICATIONROOTDIRECTORY -srd -suid -sfrag -sreg -out ./dist/heat.wxs",
"candle:wine": "$npm_package_config_wix/candle.exe -v -ext WixUtilExtension -dSourceDir=$npm_package_config_binaries ./tools/product.wxs ./dist/heat.wxs -out ./dist/",
"light:wine": "$npm_package_config_wix/light.exe -v -ext WixUtilExtension -sval ./dist/product.wixobj ./dist/heat.wixobj -out ./dist/KioskDemoElectron.msi",
"build:wine": "run-s heat:wine copyScripts candle:wine light:wine",
"dist:wine": "run-s clean pack build:wine",
"docker:build": "cross-conf-env docker build -t npm_package_name .",
"docker:create": "cross-conf-env docker create --name npm_package_name npm_package_name",
"docker:copy": "cross-conf-env docker cp npm_package_name:/kioskapp/dist/ ./dist",
"docker:remove": "cross-conf-env docker rm -f npm_package_name",
"dist:docker": "run-s docker:build docker:create clean docker:copy docker:remove"
},
"devDependencies": {
"copyfiles": "^2.4.1",
"cross-conf-env": "^1.3.0",
"cross-env": "^7.0.3",
"electron": "^24.8.5",
"electron-packager": "^17.1.1",
"npm-run-all": "^4.1.5",
"rimraf": "^4.1.2",
"wixtoolset-compiler": "^1.0.3"
},
"dependencies": {
"npm": "^10.8.2"
}
}