From 6acbdc442d3b74c88308e73342c2fa8bb7f0832c Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 9 Dec 2016 18:29:54 +0000 Subject: [PATCH] Actually write latest version into `latest` --- scripts/electron-package.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/electron-package.sh b/scripts/electron-package.sh index c8dc92f9..6faad2bb 100755 --- a/scripts/electron-package.sh +++ b/scripts/electron-package.sh @@ -72,6 +72,10 @@ echo "Building $version using Update base URL $update_base_url" projdir=`pwd` builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'` pushd "$builddir" + +# Figure out what version we're building +vername=`jq -r .version package.json` + git clone "$projdir" . git checkout "$version" @@ -105,7 +109,7 @@ cp $distdir/win/*.exe "$pubdir/install/win32/x64/" # Packages for auto-update mkdir -p "$pubdir/update/macos" cp $distdir/mac/*.zip "$pubdir/update/macos/" -echo "$ver" > "$pubdir/update/macos/latest" +echo "$vername" > "$pubdir/update/macos/latest" mkdir -p "$pubdir/update/win32/ia32/" cp $distdir/win-ia32/*.nupkg "$pubdir/update/win32/ia32/"