From cee06bbe11ab204d77acdffd1f1d1d5555b4e9ff Mon Sep 17 00:00:00 2001 From: grey Date: Tue, 15 Nov 2022 18:26:50 +0100 Subject: [PATCH] add windows build script --- build_win.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build_win.sh diff --git a/build_win.sh b/build_win.sh new file mode 100644 index 0000000..e91d3c8 --- /dev/null +++ b/build_win.sh @@ -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