forked from getlantern/lantern
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwinInstall.bash
More file actions
executable file
·24 lines (18 loc) · 820 Bytes
/
winInstall.bash
File metadata and controls
executable file
·24 lines (18 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
function die() {
echo $*
exit 1
}
if [ $# -lt "2" ]
then
die "$0: Received $# args... version and whether or not it's a release (true or false) required"
fi
VERSION=$1
RELEASE=$2
echo "RELEASE flag is $RELEASE"
source ./installerBuild.bash $VERSION "-Dsun.arch.data.model=32 -Pwindows,-mac,-linux" $RELEASE || die "Could not build?"
install4jc -v --win-keystore-password=$INSTALL4J_WIN_PASS -m windows -r $VERSION ./install/lantern.install4j || die "Could not build installer"
git=`git rev-parse --verify lantern-$VERSION^{commit} | cut -c1-7`
name=lantern-$VERSION-$git.exe
mv install/Lantern.exe $name || die "Could not move new installer -- failed to create somehow?"
./installMetaRefresh.bash win $name latest.exe $RELEASE || die "ERROR: Could not build meta-refresh redirect file"