forked from zlatinb/muwire-pkg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnsis.sh
40 lines (33 loc) · 974 Bytes
/
nsis.sh
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
#!/bin/bash
set -e
RES_DIR=../i2p.i2p/installer/resources
JVM_DIR=dist/win
I2P_JARS=../i2p.i2p/pkg-temp
MW_DIR=../muwire
rm -rf build *.exe
mkdir -p build/pkg
cp GPLv3.txt build/GPLv3-ud.txt
unix2dos build/GPLv3-ud.txt
echo "preparing jbigi"
cp $I2P_JARS/lib/jbigi.jar build/pkg
zip -d build/pkg/jbigi.jar "*osx*"
zip -d build/pkg/jbigi.jar "*linux*"
zip -d build/pkg/jbigi.jar "*freebsd*"
echo "copying files"
cp unnamed.jar build/pkg
cp MuWire.jar build/pkg
cp muwire.bat build/pkg
cp -R $RES_DIR/certificates build/pkg
cp $RES_DIR/countries.txt build/pkg
cp $RES_DIR/continents.txt build/pkg
cp $RES_DIR/GeoLite2-Country.mmdb.gz build/pkg
gunzip build/pkg/GeoLite2-Country.mmdb.gz
cp $MW_DIR/logging/1_logging.properties build/pkg
echo "copying JRE"
mkdir build/jre
cp -R $JVM_DIR/* build/jre
cp MuWire.ico build
cp installer.nsi build
cp version.nsi build
cd build && makensis installer.nsi && cp MuWire-*.exe ../ && \
cd .. && echo "built windows installer"