Skip to content

Commit

Permalink
Merge pull request #120 from allcloud-io/feature/update-build
Browse files Browse the repository at this point in the history
update build scripts
  • Loading branch information
Jonathan committed Aug 4, 2021
2 parents 78d23f3 + 0eb5e75 commit 7a956fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ zip-only-unsigned: all
cd $(BUILDPATH) && \
for i in `ls -1 $(BINARY_NAME)* | grep -v '.zip' | grep -v darwin`; do zip ../$(ASSETPATH)/$$i.zip $$i; done
cd $(ASSETPATH) && \
sha256sum *zip > SHASUMS256.txt
sha256sum clisso-*zip > SHASUMS256.txt

zip: all sign
mkdir -p $(ASSETPATH)
cd $(BUILDPATH) && \
for i in `ls -1 $(BINARY_NAME)* | grep -v '.zip' | grep -v darwin`; do zip ../$(ASSETPATH)/$$i.zip $$i; done
cd $(ASSETPATH) && \
sha256sum *zip > SHASUMS256.txt
sha256sum clisso-*zip > SHASUMS256.txt

.PHONY: unsigned-darwin-zip
unsigned-darwin-zip: darwin-amd64 darwin-arm64
Expand Down
3 changes: 2 additions & 1 deletion make_brew_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ trap cleanup EXIT
SHA256=$(wget "https://github.com/allcloud-io/${BINARY_NAME}/archive/${VERSION}.tar.gz" -O source.tar.gz -o /dev/null && sha256sum source.tar.gz | awk '{ print $1 }' && rm -f source.tar.gz)

# create signed zip files
make sign
# make sign
SHA256_ZIP_DARWIN_AMD64=$(sha256sum "assets/${BINARY_NAME}-darwin-amd64.zip" | awk '{ print $1 }' )
SHA256_ZIP_DARWIN_ARM64=$(sha256sum "assets/${BINARY_NAME}-darwin-arm64.zip" | awk '{ print $1 }' )

Expand Down Expand Up @@ -65,6 +65,7 @@ cd "$SOURCE_DIR" || exit 1
brew test-bot "allcloud-io/tools/${BINARY_NAME}"

# commit to git and push to origin
cd "$TAP_DIR" || exit 1
BRANCHNAME=auto/${BINARY_NAME}-${VERSION}
git checkout -b "$BRANCHNAME" || git checkout "$BRANCHNAME"
git add "${BINARY_NAME}.rb"
Expand Down

0 comments on commit 7a956fd

Please sign in to comment.