SemVer is a Utility to Bump Semantic Version String in C header, java, and text file.
AppVeyor Windows build status:
These steps would be done to release a software normally
- Create a source file which contain version string.
- Increase version number manually, for example, increase 0.1.0 to 0.2.0.
- Rebuild your software and get the target file manually, for example target.hex.
- Append the version number to the target file manually, for example target_0.2.0.hex.
SemVer aims to do the step 1, step 2 and step 4.
SemVer creates version head file, increases version and appends the version to a file name.
The version format defined in semver.org.
There are released binaries for windows in SemVer Release. You can try to use them directly.
If you want to build it from code. Compile tool is GCC. Mingw or Cygwin is needed be installed on windows. GCC is needed be installed on Linux.
Run make
to build the executable binary.
Create a head file version.h with initial version value 0.1.0
semver -i0.1.0 version.h
Increase the version value to 0.1.1
semver -z version.h
Increase the version value to 0.2.0
semver -y version.h
Increase the version value to 1.0.0
semver -x version.h
Append version to file target.hex to target_1.0.0.hex
semver -atarget.hex version.h