#! /bin/sh

if [ -e ./proximityreminder.wgt ]; then 
    rm -v proximityreminder.wgt
fi

# Zip all the html, javascript, CSS, images and other information.
zip -r proximityreminder.wgt *.html ./js/*.js ./css/* config.xml remind_me.png -x *~ -x */*~

if [ -e ./proximityreminder-nowebinosjs.wgt ]; then 
    rm -v proximityreminder-nowebinosjs.wgt
fi

# Do it again, but this time without webinos.js
zip -r proximityreminder-nowebinosjs.wgt *.html ./js/*.js ./css/* config.xml remind_me.png -x ./js/webinos.js -x *~ -x */*~

#! /bin/sh

if [ -e ./proximityreminder.wgt ]; then 
    rm -v proximityreminder.wgt
fi

# Zip all the html, javascript, CSS, images and other information.
zip proximityreminder.wgt *.html ./js/*.js ./css/*.css ./css/images/* config.xml remind_me.png

if [ -e ./proximityreminder-nowebinosjs.wgt ]; then 
    rm -v proximityreminder-nowebinosjs.wgt
fi

# Do it again, but this time without webinos.js
zip proximityreminder-nowebinosjs.wgt *.html ./js/*.js ./css/*.css ./css/images/* config.xml remind_me.png -x ./js/webinos.js

--- 
+++ 
@@ -5,11 +5,11 @@
 fi
 
 # Zip all the html, javascript, CSS, images and other information.
-zip -r proximityreminder.wgt *.html ./js/*.js ./css/* config.xml remind_me.png -x *~ -x */*~
+zip proximityreminder.wgt *.html ./js/*.js ./css/*.css ./css/images/* config.xml remind_me.png
 
 if [ -e ./proximityreminder-nowebinosjs.wgt ]; then 
     rm -v proximityreminder-nowebinosjs.wgt
 fi
 
 # Do it again, but this time without webinos.js
-zip -r proximityreminder-nowebinosjs.wgt *.html ./js/*.js ./css/* config.xml remind_me.png -x ./js/webinos.js -x *~ -x */*~
+zip proximityreminder-nowebinosjs.wgt *.html ./js/*.js ./css/*.css ./css/images/* config.xml remind_me.png -x ./js/webinos.js
Fix the widget creation script to respect directory structure

The widget creation script now uses the -r flag and removes
all temporary files

Jira issue: APPPR-17
