-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2d76540
commit 15841bc
Showing
5 changed files
with
91 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
2430bf80ea1664d387ee89267fbd6b723b4f4862b35f5866438858ef9aca77e8 ccminer-decred-linux-x86_64-v0.1.0-20160427.tar.gz | ||
1101e202b6594190d28e28ccb050637a9bec25e6ca3caabdcb59b5cb3a30827f ccminer-decred-win64-v0.1.0-20160427.zip | ||
f28aca448d4947d9e9c17a40659defd654c821f4630789f3409775030894cf35 cgminer-decred-linux-x86_64-v0.1.0-20160427.tar.gz | ||
03589fbe7acd0766a0937fc7706a2725605fd74cd2da6697b2ffe51a46a6ac31 cgminer-decred-win64-v0.1.0-20160427.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
# Simple bash script to build and package Decred miner for all the platforms | ||
# we support. | ||
# | ||
# Currently, ccminer cannot be crosscompiled so it must be manually | ||
# built and zipped up on windows. Also ccminer doesn't build on linux | ||
# on my build machine (jcv) due to some older libs so it must also be done | ||
# manually. Hopefully both of these can be fixed in the near future. | ||
# | ||
# Copyright (c) 2016 The Decred developers | ||
# Use of this source code is governed by the ISC | ||
# license. | ||
|
||
if [[ $1x = x ]]; then | ||
TAG="" | ||
else | ||
TAG=-$1 | ||
fi | ||
|
||
DATE=`date +%Y%m%d` | ||
MAINDIR=miners$TAG-$DATE-$VERSION | ||
mkdir -p $MAINDIR | ||
|
||
cd ../cgminer/ | ||
git clean | ||
./build_linux.sh | ||
mkdir cgminer-decred-linux-x86_64$TAG-$DATE | ||
cp cgminer cgminer-decred-linux-x86_64$TAG-$DATE/ | ||
cp blake256.cl cgminer-decred-linux-x86_64$TAG-$DATE/ | ||
tar -cvzf cgminer-decred-linux-x86_64$TAG-$DATE.tar.gz cgminer-decred-linux-x86_64$TAG-$DATE/ | ||
cp cgminer-decred-linux-x86_64$TAG-$DATE.tar.gz ../decred-release/$MAINDIR | ||
./build_windows.sh | ||
mkdir cgminer-decred-win64$TAG-$DATE | ||
cp cgminer..exe cgminer-decred-win64$TAG-$DATE/ | ||
cp blake256.cl cgminer-decred-win64$TAG-$DATE/ | ||
zip -r cgminer-decred-win64$TAG-$DATE.zip cgminer-decred-win64$TAG-$DATE/ | ||
cp cgminer-decred-win64$TAG-$DATE.zip ../decred-release/$MAINDIR | ||
cd .. | ||
cp ccminer-decred-linux-x86_64$TAG-$DATE.tar.gz decred-release/$MAINDIR | ||
cp ccminer-decred-win64$TAG-$DATE.zip decred-release/$MAINDIR | ||
sha256sum * > manifest-miners-$DATE.txt | ||
cd .. | ||
tar -cvzf $MAINDIR.tar.gz $MAINDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters