forked from pooler/cpuminer
-
Notifications
You must be signed in to change notification settings - Fork 29
/
build-w64.sh
executable file
·29 lines (24 loc) · 886 Bytes
/
build-w64.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# CLEAN
make distclean || echo clean
rm -f config.status
# DEPS
# cd deps-win64
# ./build_win_x64_deps.sh
# cd ..
# BUILD
autoreconf -fi -I./deps-win64/x86_64-w64-mingw32/share/aclocal
./autogen.sh
./configure --host=x86_64-w64-mingw32 LDFLAGS="-L./deps-win64/x86_64-w64-mingw32/lib -static" CFLAGS="-Wall -O2 -fomit-frame-pointer -I./deps-win64/x86_64-w64-mingw32/include -std=c99 -DWIN32 -DCURL_STATICLIB -DPTW32_STATIC_LIB" --with-libcurl=deps-win64/x86_64-w64-mingw32
make
strip -p --strip-debug --strip-unneeded sugarmaker.exe
# PACKAGE
RELEASE=sugarmaker-v2.5.0-sugar4-w64
rm -rf $RELEASE
mkdir $RELEASE
cp ./mining-script/bat/*.bat $RELEASE/
mv sugarmaker.exe $RELEASE/
# SIGN
zip -X $RELEASE/$RELEASE.zip $RELEASE/*
sha256sum $RELEASE/$RELEASE.zip > $RELEASE/$RELEASE
gpg --digest-algo sha256 --clearsign $RELEASE/$RELEASE
rm $RELEASE/$RELEASE && cat $RELEASE/$RELEASE.asc