Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix windows bash; Add linux shell #13

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions release.bat
Original file line number Diff line number Diff line change
@@ -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
21 changes: 21 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change it to #!/bin/sh

Some systems do not have bash installed, and the only bash-specific thing is -n1 key parameter to read

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
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really needed? We can remove this line I think