- Updated the run command to execute the application from a built snapshot instead of using `go run`. - Added a new run-debug command for running the application with debug logging. - Consolidated the build process into a single target snapshot build command. - Enhanced help output to reflect the new command structure.
21 lines
778 B
Makefile
21 lines
778 B
Makefile
run: build-snapshot-single ## Run the application
|
|
@dist/default_windows_amd64_v1/steamcache2.exe
|
|
run-debug: build-snapshot-single ## Run the application with debug logging
|
|
@dist/default_windows_amd64_v1/steamcache2.exe --log-level debug
|
|
|
|
test: deps ## Run all tests
|
|
@go test -v ./...
|
|
|
|
deps: ## Download dependencies
|
|
@go mod tidy
|
|
|
|
build-snapshot-single: deps test ## Build a snapshot of the application for the current platform
|
|
@goreleaser build --single-target --snapshot --clean
|
|
|
|
help: ## Show this help message
|
|
@echo SteamCache2 Makefile
|
|
@echo Available targets:
|
|
@echo run Run the application
|
|
@echo run-debug Run the application with debug logging
|
|
@echo test Run all tests
|
|
@echo deps Download dependencies
|