Update makefile
This commit is contained in:
parent
09b495dc69
commit
0777d5cbca
21
Makefile
21
Makefile
@ -177,30 +177,15 @@ install-icons: ## Install icons to XDG data directory
|
|||||||
echo "Icons installed to $$ICON_DIR"
|
echo "Icons installed to $$ICON_DIR"
|
||||||
|
|
||||||
# Release Management
|
# Release Management
|
||||||
bump-version:
|
release:
|
||||||
@if [ -z "$(VERSION)" ]; then \
|
|
||||||
echo "Error: VERSION is required. Usage: make release VERSION=0.0.2"; \
|
|
||||||
exit 1; \
|
|
||||||
fi
|
|
||||||
@echo "Bumping WayCast version to v$(VERSION)..."
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' Cargo.toml
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-core/Cargo.toml
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-gtk/Cargo.toml
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-plugins/Cargo.toml
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-config/Cargo.toml
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' waycast-macros/Cargo.toml
|
|
||||||
@sed -i 's/version = "[^"]*"/version = "$(VERSION)"/' flake.nix
|
|
||||||
@cargo check --workspace --quiet
|
|
||||||
|
|
||||||
tag-version:
|
|
||||||
@if [ -z "$(VERSION)" ]; then \
|
@if [ -z "$(VERSION)" ]; then \
|
||||||
echo "Error: VERSION is required. Usage: make release VERSION=0.0.2"; \
|
echo "Error: VERSION is required. Usage: make release VERSION=0.0.2"; \
|
||||||
exit 1; \
|
exit 1; \
|
||||||
fi
|
fi
|
||||||
@git add -A
|
@git add -A
|
||||||
@git commit -m "Bump version to $(VERSION)"
|
@git commit -m "chore(release): v$(VERSION)"
|
||||||
@git tag v$(VERSION)
|
@git tag v$(VERSION)
|
||||||
@git push origin main
|
@git push origin master
|
||||||
@git push origin v$(VERSION)
|
@git push origin v$(VERSION)
|
||||||
@echo "✅ Release v$(VERSION) created!"
|
@echo "✅ Release v$(VERSION) created!"
|
||||||
@echo "🔗 Go to your Gitea instance to add release notes"
|
@echo "🔗 Go to your Gitea instance to add release notes"
|
Loading…
x
Reference in New Issue
Block a user