mknsis.sh 795 B

12345678910111213141516171819202122232425262728293031323334
  1. #!/bin/sh
  2. MINGW_PATH=/usr/i686-pc-mingw32/sys-root/mingw/bin
  3. OUT_BASE="cpuminer-installer"
  4. OUT_EXE="$OUT_BASE.exe"
  5. PATH=$PATH:$MINGW_PATH \
  6. nsiswrapper --run \
  7. --name "CPU miner" \
  8. --outfile "$OUT_EXE" \
  9. minerd.exe \
  10. $MINGW_PATH/libcurl-4.dll=libcurl-4.dll \
  11. $MINGW_PATH/pthreadgc2.dll=pthreadgc2.dll \
  12. $MINGW_PATH/libidn-11.dll=libidn-11.dll \
  13. $MINGW_PATH/libssh2-1.dll=libssh2-1.dll \
  14. $MINGW_PATH/libssl-10.dll=libssl-10.dll \
  15. $MINGW_PATH/zlib1.dll=zlib1.dll \
  16. $MINGW_PATH/libcrypto-10.dll=libcrypto-10.dll \
  17. $MINGW_PATH/libiconv-2.dll=libiconv-2.dll \
  18. $MINGW_PATH/libintl-8.dll=libintl-8.dll
  19. chmod 0755 "$OUT_EXE"
  20. zip -9 "$OUT_BASE" "$OUT_EXE"
  21. rm -f "$OUT_EXE"
  22. chmod 0644 "$OUT_BASE.zip"
  23. echo -n "SHA1: "
  24. sha1sum "$OUT_BASE.zip"
  25. echo -n "MD5: "
  26. md5sum "$OUT_BASE.zip"