mirror of
https://github.com/daylinmorgan/yartsu.git
synced 2024-12-22 04:20:44 -06:00
build: add version check
This commit is contained in:
parent
ca6610116a
commit
68a709ccf1
1 changed files with 9 additions and 1 deletions
10
Makefile
10
Makefile
|
@ -15,7 +15,14 @@ check-tag:
|
||||||
@[ "${TAG}" ] || ( echo ">> TAG is not set"; exit 1 )
|
@[ "${TAG}" ] || ( echo ">> TAG is not set"; exit 1 )
|
||||||
@git describe HEAD --tags --exact-match
|
@git describe HEAD --tags --exact-match
|
||||||
|
|
||||||
release-assets: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu
|
check-version:
|
||||||
|
@if [[ "${VERSION}" == *"+"* ]]; then \
|
||||||
|
echo ">> VERSION is dev"; \
|
||||||
|
echo ">> $(VERSION)"; \
|
||||||
|
exit 1; \
|
||||||
|
fi
|
||||||
|
|
||||||
|
release-assets: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu check-version
|
||||||
tar czf build/yartsu-$(VERSION)-x86_64-linux.tar.gz \
|
tar czf build/yartsu-$(VERSION)-x86_64-linux.tar.gz \
|
||||||
build/x86_64-unknown-linux-gnu/release/install/yartsu
|
build/x86_64-unknown-linux-gnu/release/install/yartsu
|
||||||
|
|
||||||
|
@ -40,6 +47,7 @@ build/shiv/yartsu: $(SRC_FILES)
|
||||||
.
|
.
|
||||||
|
|
||||||
build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu: $(SRC_FILES)
|
build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu: $(SRC_FILES)
|
||||||
|
pdm install
|
||||||
pyoxidizer build --release
|
pyoxidizer build --release
|
||||||
|
|
||||||
install-bin: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu
|
install-bin: build/x86_64-unknown-linux-gnu/release/install/yartsu/yartsu
|
||||||
|
|
Loading…
Reference in a new issue