mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-11-25 02:10:32 -06:00
Update the version handler logic and remove the script
This commit is contained in:
parent
08d9c34735
commit
97ea80a9f8
@ -12,7 +12,7 @@ delete_app()
|
|||||||
compare_versions()
|
compare_versions()
|
||||||
{
|
{
|
||||||
# Get the installer version:
|
# Get the installer version:
|
||||||
CURRENT_VERSION=3.1.0
|
CURRENT_VERSION=3.3.0
|
||||||
|
|
||||||
# Get the currently installed version:
|
# Get the currently installed version:
|
||||||
INSTALLED_VERSION=$(plutil -p /Applications/Symphony.app/Contents/Info.plist | awk '/CFBundleShortVersionString/ {print substr($3, 2, length($3)-2)}')
|
INSTALLED_VERSION=$(plutil -p /Applications/Symphony.app/Contents/Info.plist | awk '/CFBundleShortVersionString/ {print substr($3, 2, length($3)-2)}')
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# Read the actual version from package.json
|
|
||||||
VERSION=$(sed -n 's/\"version\"[[:space:]]*\:[[:space:]]*\"\([^}]*\)\",/\1/p' package.json)
|
|
||||||
|
|
||||||
# Trim trailing and leading spaces
|
|
||||||
VERSION=$(echo ${VERSION} | xargs)
|
|
||||||
|
|
||||||
# Replace the current version variable in the pre-install script
|
|
||||||
sed -i '' -e "s/CURRENT_VERSION=.*/CURRENT_VERSION=${VERSION}/g" ./installer/mac/preinstall.sh
|
|
@ -17,7 +17,7 @@
|
|||||||
"demo-win": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file:///demo/index.html",
|
"demo-win": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file:///demo/index.html",
|
||||||
"demo-mac": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html",
|
"demo-mac": "npm run prebuild && cross-env ELECTRON_DEV=true electron . --url=file://$(pwd)/demo/index.html",
|
||||||
"unpacked-mac": "npm run prebuild && npm run test && build --mac --dir",
|
"unpacked-mac": "npm run prebuild && npm run test && build --mac --dir",
|
||||||
"packed-mac": "sh installer/mac/version_handler.sh && npm run unpacked-mac && packagesbuild -v installer/mac/symphony-mac-packager.pkgproj",
|
"packed-mac": "npm run unpacked-mac && packagesbuild -v installer/mac/symphony-mac-packager.pkgproj",
|
||||||
"unpacked-win": "npm run prebuild && npm run test && build --win --x64 --dir",
|
"unpacked-win": "npm run prebuild && npm run test && build --win --x64 --dir",
|
||||||
"unpacked-win-x86": "npm run prebuild && npm run test && build --win --ia32 --dir"
|
"unpacked-win-x86": "npm run prebuild && npm run test && build --win --ia32 --dir"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user