Skip to content

Commit a751836

Browse files
Jeff GarzikJeff Garzik
Jeff Garzik
authored and
Jeff Garzik
committed
Windows build tweaks.
1 parent 2f2bf74 commit a751836

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

README

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Basic *nix build instructions:
1515

1616
Basic WIN32 build instructions (on Fedora 13; requires mingw32):
1717
./autogen.sh
18-
MINGW32_CFLAGS="-O2 -Wall -msse2 -g" mingw32-configure
18+
MINGW32_CFLAGS="-O2 -Wall -msse2" mingw32-configure
1919
make
2020
./mknsis.sh
2121

mknsis.sh

+15-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22

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

5+
OUT_BASE="cpuminer-installer"
6+
OUT_EXE="$OUT_BASE.exe"
7+
58
PATH=$PATH:$MINGW_PATH \
69
nsiswrapper --run \
710
--name "CPU miner" \
8-
--outfile cpuminer-installer.exe \
11+
--outfile "$OUT_EXE" \
912
minerd.exe \
1013
$MINGW_PATH/libcurl-4.dll=libcurl-4.dll \
1114
$MINGW_PATH/pthreadgc2.dll=pthreadgc2.dll \
@@ -17,4 +20,15 @@ PATH=$PATH:$MINGW_PATH \
1720
$MINGW_PATH/libiconv-2.dll=libiconv-2.dll \
1821
$MINGW_PATH/libintl-8.dll=libintl-8.dll
1922

23+
chmod 0755 "$OUT_EXE"
24+
zip -9 "$OUT_BASE" "$OUT_EXE"
25+
rm -f "$OUT_EXE"
26+
27+
chmod 0644 "$OUT_BASE.zip"
28+
29+
echo -n "SHA1: "
30+
sha1sum "$OUT_BASE.zip"
31+
32+
echo -n "MD5: "
33+
md5sum "$OUT_BASE.zip"
2034

0 commit comments

Comments
 (0)