summaryrefslogtreecommitdiff
path: root/make_desktop.sh
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@gmail.com>2017-11-25 14:05:28 -0500
committerPliable Pixels <pliablepixels@gmail.com>2017-11-25 14:05:28 -0500
commit2dd3bb2198edb77a86bb4eaa1a5533e31701c6eb (patch)
tree68c9838a261ea47eaaa3f8f9df847295b2fc0b8a /make_desktop.sh
parentfaabddfe5d1e6e5c6acba52694d39dd4190b9aa7 (diff)
added "-p <port>" option
Diffstat (limited to 'make_desktop.sh')
-rwxr-xr-xmake_desktop.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/make_desktop.sh b/make_desktop.sh
index 604849d7..af11972f 100755
--- a/make_desktop.sh
+++ b/make_desktop.sh
@@ -9,6 +9,24 @@ if [ ! -d "desktop" ]; then
exit
fi
+while [[ $# -gt 0 ]]
+do
+arg="$1"
+case $arg in
+ -p|--port)
+ PORT="$2"
+ shift
+ shift
+ ;;
+ *)
+ echo "Unknown argument $1, ignoring..."
+ shift
+ ;;
+esac
+done
+
+[[ ! -z $PORT ]] && echo "Only creating build for $PORT" && PORT="-$PORT"
+
echo ----------------------------------------------------
echo Pliable Pixels Desktop build process
echo ----------------------------------------------------
@@ -20,6 +38,12 @@ declare -a app_ports=("desktop/zmNinja-mac.app/Contents/Resources" "desktop/zmNi
for i in "${app_ports[@]}"
do
+if [[ "$i" =~ $PORT ]]; then
+ echo "$i contains $PORT, so building"
+else
+ echo "$i will be skipped"
+ continue
+fi
if [ -d "$i" ]; then
DIRNAME=$i
@@ -70,6 +94,7 @@ if [ -d "$i" ]; then
else
echo "$i does not exist, skipping"
fi
+ echo "(Note, SASS changes won't be reflected. Run "ionic build" for that)"
done