Bump version of TorchCraft automagically.
There are two tools, tc-bumper
and tc-make-release
.
-
tc-bumper
- creates a
new_release
branch (trying very hard); - replaces the version in certain files such as
$TORHCRAFT_PATH/CMakeLists.txt
and$TORCHCRAFT_PATH/quick_setup.sh
; - commits changes and pushes the new branch to whatever remote is assigned
to
origin
in$TORCHCRAFT_PATH
.
- creates a
-
tc-make-release
- copies the release files in the correct order / tree structure;
- zips everything up into one binary that you can upload on GitHub.
WARNING: like with all automatic tools, if you are not careful you might lose work. You probably want to use this only if you are core developer.
- Install python 2 or python 3;
$ git clone git@github.com:TorchCraft/tc-prepare-release
.
-
Set the git head in
$TORCHCRAFT_PATH
todevelop
. -
Create release:
$ cd tc-prepare-release
# First off, visualise the options in case there's anything you need.
$ python tc-bumper -h
# Now you can happily run the tool.
# With these flags it automatically makes a backup of the directory and
# stashes any dirt.
$ python tc-bumper $OLD_VERSION $NEW_VERSION $TORHCRAFT_PATH -b -s
# e.g.
# python tc-bumper 1.2-1 1.3-1 ../TorchCraft -b -s
- Create zip:
- Compile solution on Windows and copy
BWEnv.exe
andBWEnv.dll
totc-bumper/out/
; - Run
python tc-make-release.py $NEW_VERSION $TORCHCRAFT_PATH
.
- Compile solution on Windows and copy