forked from hwengmgr/VTCDocker
-
Notifications
You must be signed in to change notification settings - Fork 4
/
build-win-only.sh
executable file
·26 lines (21 loc) · 959 Bytes
/
build-win-only.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
#!/bin/bash
cd /root/vertcoin
make distclean
export WORKSPACE=`pwd`
rm -rf build
export HOST=x86_64-w64-mingw32
make -j8 -C depends HOST=$HOST
mkdir -p $WORKSPACE/out/$HOST
./autogen.sh
mkdir build && cd build
../configure --disable-dependency-tracking --disable-tests --disable-bench --prefix=$WORKSPACE/depends/$HOST --enable-reduce-exports --bindir=$WORKSPACE/out/$HOST/bin --libdir=$WORKSPACE/out/$HOST/lib --disable-shared
make -j8 install
cd ../
rm -rf build
rm -rf /root/output/$HOST
mv $WORKSPACE/out/$HOST /root/output/$HOST
QT_BINS=("/root/output/$HOST/bin/vertcoin-qt.exe")
DAEMON_BINS=("/root/output/$HOST/bin/vertcoind.exe" "/root/output/$HOST/bin/vertcoin-tx.exe" "/root/output/$HOST/bin/vertcoin-cli.exe" "/root/output/$HOST/bin/vertcoin-wallet.exe")
strip --strip-unneeded "${QT_BINS[@]}" "${DAEMON_BINS[@]}"
zip -j /root/output/vertcoind-windows-x64.zip "${DAEMON_BINS[@]}"
zip -j /root/output/vertcoinqt-windows-x64.zip "${QT_BINS[@]}"