diff --git a/build.sh b/build.sh index eb6e440c..e3b154ed 100755 --- a/build.sh +++ b/build.sh @@ -1,5 +1,21 @@ #!/bin/sh +while getopts "d" flag; do + case $flag in + d) # Handle the -d flag + # run docker + echo "Running in Docker..." + # run docker + docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest /bin/bash -c "./build.sh testing; exit" + exit + ;; + \?) + # Handle invalid options + ;; + esac +done + + # cleaning the build dir sencha ant clean @@ -10,4 +26,7 @@ sencha app build $1 ant build-plus # build xar -ant xar \ No newline at end of file +ant xar + +exit +