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

shell script to start sencha #434

Merged
merged 15 commits into from
Dec 2, 2024
Merged
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
20 changes: 20 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
#!/bin/sh

while getopts "d" flag; do
case $flag in
d) # Handle the -d flag
# run docker
echo "Running in Docker..."
# remove -d from the list of input arguments
shift $((OPTIND-1))
# set a variable OPTIONS with the remaining input arguments to pass to the build command
OPTIONS=${@}
# run docker
docker run --rm -it -v `pwd`:/app --name sencha ghcr.io/bwbohl/sencha-cmd:latest ./build.sh $OPTIONS
exit
daniel-jettka marked this conversation as resolved.
Show resolved Hide resolved
;;
\?)
# Handle invalid options
;;
esac
done


# cleaning the build dir
sencha ant clean

Expand Down