1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-06-29 02:20:39 +00:00

Improve the start script in OS X.

Starts qb64 as an independent process and closes Terminal window after it's done. If no more Terminal windows remain open, quits Terminal app.
This commit is contained in:
Fellippe Heitor 2016-02-25 01:08:53 -03:00
parent ed03cc992f
commit 4ecf981909

View file

@ -1,2 +1,5 @@
cd "$(dirname "$0")"
./qb64
./qb64 &
osascript -e 'tell application "Terminal" to close (every window whose name contains "qb64_start_osx.command")' &
osascript -e 'if (count the windows of application "Terminal") is 0 then tell application "Terminal" to quit' &
exit