aboutsummaryrefslogtreecommitdiff
path: root/mknsis.sh
blob: 3efd09b1d3df6ca3cd1032158ea38fbc3915dcc6 (plain)
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
#!/bin/sh

MINGW_PATH=/usr/i686-pc-mingw32/sys-root/mingw/bin

OUT_BASE="cpuminer-installer"
OUT_EXE="$OUT_BASE.exe"

PATH=$PATH:$MINGW_PATH \
    nsiswrapper --run \
	--name "CPU miner" \
	--outfile "$OUT_EXE" \
	minerd.exe \
	$MINGW_PATH/libcurl-4.dll=libcurl-4.dll	\
	$MINGW_PATH/pthreadgc2.dll=pthreadgc2.dll \
	$MINGW_PATH/libidn-11.dll=libidn-11.dll \
	$MINGW_PATH/libssh2-1.dll=libssh2-1.dll \
	$MINGW_PATH/libssl-10.dll=libssl-10.dll \
	$MINGW_PATH/zlib1.dll=zlib1.dll \
	$MINGW_PATH/libcrypto-10.dll=libcrypto-10.dll \
	$MINGW_PATH/libiconv-2.dll=libiconv-2.dll \
	$MINGW_PATH/libintl-8.dll=libintl-8.dll

chmod 0755 "$OUT_EXE"
zip -9 "$OUT_BASE" "$OUT_EXE"
rm -f "$OUT_EXE"

chmod 0644 "$OUT_BASE.zip"

echo -n "SHA1: "
sha1sum "$OUT_BASE.zip"

echo -n "MD5: "
md5sum "$OUT_BASE.zip"