add electron packaging
This commit is contained in:
parent
4e28df6eea
commit
3eab7cc6eb
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,3 +8,4 @@ bom.json
|
|||||||
log-journal.json
|
log-journal.json
|
||||||
openCountdown
|
openCountdown
|
||||||
openCountdown.exe
|
openCountdown.exe
|
||||||
|
buildout
|
19
build.sh
Executable file
19
build.sh
Executable file
@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#npx electron-packager . --platform=win32 --overwrite --out=./buildout
|
||||||
|
npx electron-packager . --platform=win32,linux --overwrite --out=./buildout
|
||||||
|
cd "./buildout/" || exit 1
|
||||||
|
|
||||||
|
resources=(
|
||||||
|
"electronAssets"
|
||||||
|
"lang"
|
||||||
|
"static"
|
||||||
|
"templates"
|
||||||
|
"package.json"
|
||||||
|
)
|
||||||
|
|
||||||
|
for dir in */; do
|
||||||
|
for i in "${resources[@]}"; do
|
||||||
|
echo "$dir -> $i"
|
||||||
|
cp -r "$dir/resources/app/$i" "$dir"
|
||||||
|
done
|
||||||
|
done
|
@ -1 +0,0 @@
|
|||||||
nexe index.js --build --python python3 --resource "./static/*" --resource "./templates/*"
|
|
5852
package-lock.json
generated
5852
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
71
package.json
71
package.json
@ -1,34 +1,39 @@
|
|||||||
{
|
{
|
||||||
"name": "opencountdown",
|
"name": "opencountdown",
|
||||||
"version": "1.0.3",
|
"version": "1.0.4",
|
||||||
"description": "An opensource countdown",
|
"description": "An opensource countdown",
|
||||||
"main": "index.js",
|
"main": "newStartHandler.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "nexe index.js --build",
|
"start": "electron newStartHandler.js"
|
||||||
"start": "electron newStartHandler.js"
|
},
|
||||||
},
|
"author": "TheGreydiamond",
|
||||||
"author": "TheGreydiamond",
|
"license": "LGPL-3.0",
|
||||||
"license": "LGPL-3.0",
|
"dependencies": {
|
||||||
"dependencies": {
|
"body-parser": "^1.19.2",
|
||||||
"body-parser": "^1.19.2",
|
"bootstrap": "^5.1.3",
|
||||||
"bootstrap": "^5.1.3",
|
"bootstrap-duration-picker": "^2.1.3",
|
||||||
"bootstrap-duration-picker": "^2.1.3",
|
"bootstrap-icons": "^1.8.1",
|
||||||
"bootstrap-icons": "^1.8.1",
|
"colors": "^1.4.0",
|
||||||
"colors": "^1.4.0",
|
"darkreader": "^4.9.44",
|
||||||
"darkreader": "^4.9.44",
|
"eta": "^1.12.3",
|
||||||
"eta": "^1.12.3",
|
"express": "^4.17.3",
|
||||||
"express": "^4.17.3",
|
"flatpickr": "^4.6.11",
|
||||||
"flatpickr": "^4.6.11",
|
"jquery": "^3.6.0",
|
||||||
"jquery": "^3.6.0",
|
"js-cookie": "^3.0.1",
|
||||||
"js-cookie": "^3.0.1",
|
"less": "^3.13",
|
||||||
"less": "^3.13",
|
"mdbootstrap": "^4.20.0",
|
||||||
"mdbootstrap": "^4.20.0",
|
"open": "^8.4.0",
|
||||||
"open": "^8.4.0",
|
"underscore": "^1.13.3",
|
||||||
"underscore": "^1.13.3",
|
"ws": "^8.5.0"
|
||||||
"ws": "^8.5.0"
|
},
|
||||||
},
|
"devDependencies": {
|
||||||
"devDependencies": {
|
"electron": "^20.0.3"
|
||||||
"electron": "^20.0.3"
|
},
|
||||||
}
|
"build": {
|
||||||
}
|
"extraMetadata": {
|
||||||
|
"main": "newStartHandler.js"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user