aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jeff@garzik.org>2010-11-26 23:32:29 -0500
committerJeff Garzik <jgarzik@redhat.com>2010-11-26 23:32:29 -0500
commita7518360addc6d3365c8dc4895614f98e084535d (patch)
treea85d28ea92ed3130629a15c28375236407eed05b
parent2f2bf745c462ae282e5c6cdccb6c68bff05ee85c (diff)
Windows build tweaks.
-rw-r--r--README2
-rwxr-xr-xmknsis.sh16
2 files changed, 16 insertions, 2 deletions
diff --git a/README b/README
index 452fa5d..114b36a 100644
--- a/README
+++ b/README
@@ -15,7 +15,7 @@ Basic *nix build instructions:
Basic WIN32 build instructions (on Fedora 13; requires mingw32):
./autogen.sh
- MINGW32_CFLAGS="-O2 -Wall -msse2 -g" mingw32-configure
+ MINGW32_CFLAGS="-O2 -Wall -msse2" mingw32-configure
make
./mknsis.sh
diff --git a/mknsis.sh b/mknsis.sh
index ecd20f8..cc97dbe 100755
--- a/mknsis.sh
+++ b/mknsis.sh
@@ -2,10 +2,13 @@
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 cpuminer-installer.exe \
+ --outfile "$OUT_EXE" \
minerd.exe \
$MINGW_PATH/libcurl-4.dll=libcurl-4.dll \
$MINGW_PATH/pthreadgc2.dll=pthreadgc2.dll \
@@ -17,4 +20,15 @@ PATH=$PATH:$MINGW_PATH \
$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"