Update makefile

This commit is contained in:
Javier Feliz 2025-09-11 21:36:40 -04:00
parent 09b495dc69
commit 0777d5cbca

View File

@ -177,30 +177,15 @@ install-icons: ## Install icons to XDG data directory
echo "Icons installed to $$ICON_DIR"
# Release Management
bump-version:
@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:
release:
@if [ -z "$(VERSION)" ]; then \
echo "Error: VERSION is required. Usage: make release VERSION=0.0.2"; \
exit 1; \
fi
@git add -A
@git commit -m "Bump version to $(VERSION)"
@git commit -m "chore(release): v$(VERSION)"
@git tag v$(VERSION)
@git push origin main
@git push origin master
@git push origin v$(VERSION)
@echo "✅ Release v$(VERSION) created!"
@echo "🔗 Go to your Gitea instance to add release notes"