Skip to content

Instantly share code, notes, and snippets.

@tohuuuuu
Last active December 3, 2019 12:18
Show Gist options
  • Select an option

  • Save tohuuuuu/55439fa78bba6a07af8a21d33c4949f6 to your computer and use it in GitHub Desktop.

Select an option

Save tohuuuuu/55439fa78bba6a07af8a21d33c4949f6 to your computer and use it in GitHub Desktop.
Sign multiple jars using keystore / key passwords from env variables
export storepass="mystorepassword"
export keypass="mykeypassword"
for i in ./*.jar; do jarsigner -storepass:env storepass -keypass:env keypass "$i" key_alias;done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment