Skip to content

Instantly share code, notes, and snippets.

@guilhermemauro
Last active May 20, 2017 15:57
Show Gist options
  • Save guilhermemauro/a18b4481d2a8879b03b26d36ecab1e5b to your computer and use it in GitHub Desktop.
Save guilhermemauro/a18b4481d2a8879b03b26d36ecab1e5b to your computer and use it in GitHub Desktop.
Esse script em Python automatiza o processo de mudança dos icones padrões do Phonegap pelo criado pelo usuário (Android)
from shutil import copy
from sys import argv
NAMES = ["drawable-hdpi-icon.png", "drawable-ldpi-icon.png", "drawable-mdpi-icon.png", "drawable-xhdpi-icon.png", "drawable-xxhdpi-icon.png", "drawable-xxxhdpi-icon.png"]
#execute python icon_rename.py nome_do_icone.png
if len(argv) < 2:
print "Falta argumentos!"
exit()
for name in NAMES:
copy(argv[1], name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment