Skip to content

Instantly share code, notes, and snippets.

@bartenbach
Created February 17, 2012 11:13
Show Gist options
  • Save bartenbach/1852735 to your computer and use it in GitHub Desktop.
Save bartenbach/1852735 to your computer and use it in GitHub Desktop.
#!/bin/sh
# Blake's super awesome jar signing script for *nix
if [ -f ~/NetBeansProjects/tpcspades/dist/TPCSpades.jar ]
then
echo "TPCSpades.jar found..."
if [ -f ~/Documents/TPCGames ]
then
echo "Keystore found..."
jarsigner -keystore ~/Documents/TPCGames ~/NetBeansProjects/tpcspades/dist/TPCSpades.jar TPCGames > /dev/null
echo "Jar signed!"
exit 0
else
echo "Keystore not found!"
exit 1
fi
else
echo "Jar not found"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment