|
|
|
@ -11,6 +11,7 @@ cli := ./dist/hmy |
|
|
|
|
upload-path-darwin := 's3://pub.harmony.one/release/darwin-x86_64/mainnet/hmy'
|
|
|
|
|
upload-path-linux := 's3://pub.harmony.one/release/linux-x86_64/mainnet/hmy'
|
|
|
|
|
upload-path-linux-version := 's3://pub.harmony.one/release/linux-x86_64/mainnet/hmy_version'
|
|
|
|
|
uname := $(shell uname)
|
|
|
|
|
|
|
|
|
|
env := GO111MODULE=on
|
|
|
|
|
|
|
|
|
@ -44,13 +45,21 @@ test-rpc: |
|
|
|
|
|
|
|
|
|
# Notice assumes you have correct uploading credentials
|
|
|
|
|
upload-darwin:all |
|
|
|
|
ifeq (${uname}, Darwin) |
|
|
|
|
aws --profile upload s3 cp ./hmy ${upload-path-darwin}
|
|
|
|
|
else |
|
|
|
|
@echo "Wrong operating system for target upload"
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
# Only the linux build will upload the CLI version
|
|
|
|
|
upload-linux:static |
|
|
|
|
ifeq (${uname}, Linux) |
|
|
|
|
aws --profile upload s3 cp ./hmy ${upload-path-linux}
|
|
|
|
|
./hmy version &> ./hmy_version
|
|
|
|
|
aws --profile upload s3 cp ./hmy_version ${upload-path-linux-version}
|
|
|
|
|
else |
|
|
|
|
@echo "Wrong operating system for target upload"
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
.PHONY:clean run-tests upload-darwin upload-linux |
|
|
|
|
|
|
|
|
|