Skip to content

Instantly share code, notes, and snippets.

@taonico
Created January 15, 2013 08:07
Show Gist options
  • Save taonico/4537118 to your computer and use it in GitHub Desktop.
Save taonico/4537118 to your computer and use it in GitHub Desktop.
make app for moeclock
#!/bin/sh
APPLNAME="moeclock"
SHELLSCRIPT="moeclock"
ICON="moeclock"
RESOURCES=${APPLNAME}.app/Contents/Resources
mkdir ${APPLNAME}.app
mkdir ${APPLNAME}.app/Contents
mkdir ${APPLNAME}.app/Contents/MacOS
#mkdir ${APPLNAME}.app/Contents/Resources
mv moeclock ${RESOURCES}
python info.py ${APPLNAME}.app/Contents/Info.plist
tiff2icns ${RESOURCES}/${ICON}.png ${RESOURCES}/${ICON}.icns
chmod a+x ${RESOURCES}/${SHELLSCRIPT}.sh
chmod a+x ${RESOURCES}/${SHELLSCRIPT}2.sh
mv ${RESOURCES}/${SHELLSCRIPT}.sh ${APPLNAME}.app/Contents/MacOS/
mv ${RESOURCES}/${SHELLSCRIPT}2.sh ${APPLNAME}.app/Contents/MacOS/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment