2010-11-27 00:01:25 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
2010-11-27 01:43:54 +01:00
|
|
|
MINGW_PATH=/usr/i686-pc-mingw32/sys-root/mingw/bin
|
|
|
|
|
2010-11-27 05:32:29 +01:00
|
|
|
OUT_BASE="cpuminer-installer"
|
|
|
|
OUT_EXE="$OUT_BASE.exe"
|
|
|
|
|
2010-11-27 01:43:54 +01:00
|
|
|
PATH=$PATH:$MINGW_PATH \
|
|
|
|
nsiswrapper --run \
|
|
|
|
--name "CPU miner" \
|
2010-11-27 05:32:29 +01:00
|
|
|
--outfile "$OUT_EXE" \
|
2010-11-27 01:43:54 +01:00
|
|
|
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
|
|
|
|
|
2010-11-27 05:32:29 +01:00
|
|
|
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: "
|
2011-09-26 00:04:58 +02:00
|
|
|
md5sum "$OUT_BASE.zip"
|