Files
firezone/Makefile
Jamil 8921281f03 Remove sed from elixir mix.exs (#2262)
Automatic version replacement isn't needed in `elixir/` since the
version is defined in Elixir script.
2023-10-06 16:57:54 +00:00

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