1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

makefile: use shasum

This commit is contained in:
Roman Khafizianov 2024-01-31 16:50:37 +01:00
parent 0eadc0bd99
commit 875d4a27d0
No known key found for this signature in database
GPG key ID: F07A7D55A2684852

View file

@ -282,7 +282,7 @@ install-dev-android: setup-go build-android
@cp -r pb/protos/*.proto $(client_android_path)/protocol/src/main/proto
@cp -r pkg/lib/pb/model/protos/*.proto $(client_android_path)/protocol/src/main/proto
# Compute the SHA hash of lib.aar
@$(eval hash := $$(shell sha1sum -b dist/android/lib.aar | cut -d' ' -f1))
@$(eval hash := $$(shell shasum -b dist/android/lib.aar | cut -d' ' -f1))
@echo "Version hash: ${hash}"
# Update the gradle file with the new version
@sed -i '' "s/version = '.*'/version = '${hash}'/g" $(client_android_path)/libs/build.gradle