mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
Automatic version replacement isn't needed in `elixir/` since the version is defined in Elixir script.
18 lines
1.0 KiB
Makefile
18 lines
1.0 KiB
Makefile
# Format:
|
|
# MAJOR: This is "1" for now. Don't change it.
|
|
# MINOR: This is the current version of the portal API in YYYYMMDD format. Consumers (connlib, REST) will request
|
|
# this API from the portal with the X-Firezone-API-Version request header.
|
|
# PATCH: Increment this each time you want to publish a new Firezone version.
|
|
version = 1.20231001.0
|
|
|
|
.PHONY: version
|
|
|
|
version:
|
|
# Elixir can set its Application version from a file, but other components aren't so flexible.
|
|
@echo $(version) > elixir/VERSION
|
|
@find rust/ -name "Cargo.toml" -exec sed -i '' -e '/mark:automatic-version/{n;s/[0-9]*\.[0-9]*\.[0-9]*/$(version)/;}' {} \;
|
|
@find .github/ -name "*.yml" -exec sed -i '' -e '/mark:automatic-version/{n;s/[0-9]*\.[0-9]*\.[0-9]*/$(version)/;}' {} \;
|
|
@find swift/ -name "project.pbxproj" -exec sed -i '' -e 's/MARKETING_VERSION = .*;/MARKETING_VERSION = $(version);/' {} \;
|
|
@find kotlin/ -name "build.gradle.kts" -exec sed -i '' -e '/mark:automatic-version/{n;s/versionName =.*/versionName = "$(version)"/;}' {} \;
|
|
@cd rust && cargo check
|