forked from getlantern/lantern
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debInstall.bash
executable file
·35 lines (27 loc) · 1005 Bytes
/
debInstall.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
function die() {
echo $*
exit 1
}
if [ $# -ne "4" ]
then
die "$0: Received $# args... version, whether or not this is a release, architecture, and build ID required"
fi
VERSION=$1
RELEASE=$2
ARCH=$3
BUILD_ID=$4
source ./installerBuild.bash $VERSION "-Dbuildos=linux -Dsun.arch.data.model=$ARCH -Plinux,-mac,-windows" $RELEASE || die "Could not build!!"
if [[ $VERSION == "HEAD" ]];
then
INSTALLVERSION=0.0.1;
else
INSTALLVERSION=$VERSION;
fi
#install4jc -m linuxDeb -r $VERSION ./install/lantern.install4j || die "Could not build Linux installer?"
install4jc -b $BUILD_ID -r $INSTALLVERSION ./install/lantern.install4j || die "Could not build Linux installer?"
git=`git rev-parse --verify lantern-$VERSION^{commit} | cut -c1-7`
name=lantern-$VERSION-$git-$ARCH-bit.deb
mv install/lantern*$ARCH*.deb $name || die "Could not find built installer to copy?"
./installMetaRefresh.bash linux $name latest-$ARCH.deb $RELEASE
#cp $name ~/Desktop/virtual-machine-files/