diff --git a/app/scripts/build_linux.sh b/app/scripts/build_linux.sh index 7daa504..0381928 100644 --- a/app/scripts/build_linux.sh +++ b/app/scripts/build_linux.sh @@ -1,5 +1,7 @@ #!/bin/bash +version=$(jq -r '.version' ./package.json) + #package app ./node_modules/.bin/electron-packager . mcopy-app --overwrite --platform=linux --arch=x64 --icon=assets/icons/icon.png --prune=true --out=../dist #build a .deb installer diff --git a/app/scripts/build_mac.sh b/app/scripts/build_mac.sh index be58bf3..65cc497 100644 --- a/app/scripts/build_mac.sh +++ b/app/scripts/build_mac.sh @@ -10,5 +10,4 @@ mkdir -p ../dist/installers ./node_modules/.bin/electron-installer-dmg ../dist/mcopy-app-darwin-x64/mcopy-app.app mcopy-app --out=../dist/installers --icon=assets/icons/icon.icns --overwrite - mv "../dist/installers/mcopy-app.dmg" "../dist/installers/mcopy-app_${version}.dmg" \ No newline at end of file