-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathrelease-installer
executable file
·45 lines (33 loc) · 1.29 KB
/
release-installer
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
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
TARGET=$1
if [[ x"$TARGET" == x"" ]]; then
echo usage: "$0" TARGET
echo TARGET: build, testing, or snapshot
exit 1
fi
# Load configuration and utility functions.
source freenet-scripts-common || exit
getBuildInfo "$TARGET"
if [[ -z "$gitVersion" ]]; then echo Could not get git version; exit 4; fi
echo Version is $buildNumber
makeBuildDir
ln -s $(pwd) "$buildDir/scripts"
git clone "$installerDir" "$buildDir/java_installer" || exit
pushd "$buildDir/java_installer"
mkdir lib
cp "$seedrefsPath" bin/seednodes.fref || exit
cp "$dependenciesDir/"* bin/ || exit
cp "$releaseDir/freenet.jar" bin/ || exit
cp "$dependenciesDir/standalone-compiler.jar" lib/ || exit
# Build script uses environment variables.
export jarsignerStoreLocation="$jarsignerStoreLocation"
export jarsignerStorePassword="$jarsignerStorePassword"
export jarsignerAlias="$jarsignerAlias"
export jarsignerCodeSigningKeyPassword="$jarsignerCodeSigningKeyPassword"
./build-all.sh || exit
cp res/bin/sha1test.jar . || exit
cp dist/* . || exit
../scripts/sign-installer-files . || exit
mv new_installer_offline.jar new_installer_offline_${buildNumber}.jar || exit 8
mv new_installer_offline.jar.sig new_installer_offline_${buildNumber}.jar.sig || exit 9
mv new_installer_offline_${buildNumber}.jar* $releaseDir || exit 10