forked from matrix/element-web
Actually write latest version into `latest`
This commit is contained in:
parent
3921aa4e54
commit
6acbdc442d
|
@ -72,6 +72,10 @@ echo "Building $version using Update base URL $update_base_url"
|
||||||
projdir=`pwd`
|
projdir=`pwd`
|
||||||
builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'`
|
builddir=`mktemp -d 2>/dev/null || mktemp -d -t 'buildtmp'`
|
||||||
pushd "$builddir"
|
pushd "$builddir"
|
||||||
|
|
||||||
|
# Figure out what version we're building
|
||||||
|
vername=`jq -r .version package.json`
|
||||||
|
|
||||||
git clone "$projdir" .
|
git clone "$projdir" .
|
||||||
git checkout "$version"
|
git checkout "$version"
|
||||||
|
|
||||||
|
@ -105,7 +109,7 @@ cp $distdir/win/*.exe "$pubdir/install/win32/x64/"
|
||||||
# Packages for auto-update
|
# Packages for auto-update
|
||||||
mkdir -p "$pubdir/update/macos"
|
mkdir -p "$pubdir/update/macos"
|
||||||
cp $distdir/mac/*.zip "$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/"
|
mkdir -p "$pubdir/update/win32/ia32/"
|
||||||
cp $distdir/win-ia32/*.nupkg "$pubdir/update/win32/ia32/"
|
cp $distdir/win-ia32/*.nupkg "$pubdir/update/win32/ia32/"
|
||||||
|
|
Loading…
Reference in New Issue