diff --git a/release.bat b/release.bat index 303f6ff..b242c35 100644 --- a/release.bat +++ b/release.bat @@ -1,12 +1,17 @@ @echo off haxe tora.hxml -rm -rf release +IF EXIST release rmdir /S/Q release mkdir release mkdir release\tora -cp haxelib.json tora.hxml CHANGES.txt release -cp tora/*.hx release/tora -cp tora.n release/run.n -#7z a -tzip release.zip release -#rm -rf release -#haxelib submit release.zip +copy "tora.n" "release/tora/run.n" +copy "haxelib.json" "release" +copy "tora.hxml" "release" +copy "CHANGES.txt" "release" +cd tora +copy "*.hx" "../release/tora" +cd .. + +rem 7z a -tzip release.zip release +rem del /Q release +rem haxelib submit release.zip pause \ No newline at end of file diff --git a/release.sh b/release.sh new file mode 100644 index 0000000..939c97a --- /dev/null +++ b/release.sh @@ -0,0 +1,21 @@ +#!/bin/bash +haxe tora.hxml +if [ -d "release" ] +then + rm -rf release +fi +mkdir release +mkdir release\tora + +cp "tora.n" "release/tora/run.n" +cp "haxelib.json" "release" +cp "tora.hxml" "release" +cp "CHANGES.txt" "release" +cd tora +cp "*.hx" "../release/tora" +cd .. + +#7z a -tzip release.zip release +#rm -rf release +#haxelib submit release.zip +read -rsp $'Press any key to continue...\n' -n1 key \ No newline at end of file