Skip to content

Commit

Permalink
Windows build tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Nov 27, 2010
1 parent 2f2bf74 commit a751836
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README
Expand Up @@ -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

Expand Down
16 changes: 15 additions & 1 deletion mknsis.sh
Expand Up @@ -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 \
Expand All @@ -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"

0 comments on commit a751836

Please sign in to comment.