diff options
author | Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org> | 2012-12-21 17:14:36 (GMT) |
---|---|---|
committer | Ignacio Rodríguez <ignaciorodriguez@sugarlabs.org> | 2012-12-21 17:14:36 (GMT) |
commit | b5d32a689de439763301da55eae433cc34ce23bc (patch) | |
tree | 8e13a58b20f20190c6b21d85813fe0198828963b | |
parent | 656f0f1b10b2df5081e51f10948303d6480094f2 (diff) |
Ahora edita: activity.info y version
-rw-r--r-- | Change.py | 29 |
1 files changed, 25 insertions, 4 deletions
@@ -2,12 +2,33 @@ # -*- coding: utf-8 -*- # Copyright (c) 2012 Ignacio Rodriguez # Actualiza la version de compress +import sys +sys.stdout.write('\x1B[36m') print 'Versión actual:'+str(open('version','r').read()) -c = raw_input('Desea cambiar la versión de compress [Si/No]:').lower() -if c == 'si': +listo = False +def act(): ver = str(int(raw_input('Versión [Numero Entero]:'))) archivo = open('version','w') archivo.write(ver) archivo.close() -if c == 'no': - exit('Como tu digas..') + activity = """[Activity] +name= Compress +activity_version ="""+ver+""" +show_launcher = 1 +bundle_id = org.ceibaljam.Compress +exec = sugar-activity Compress.Compress -s +icon = Compress +license = GPLv3+""" + archivoac = open('activity/activity.info','w') + archivoac.write(activity) + archivoac.close() +while not listo: + c = raw_input('Desea cambiar la versión de compress [Si/No]:').lower() + if c == 'si': + act() + listo = True + print 'Listo :D' + elif c == 'no': + exit('Como tu digas..') + else: + print 'Opción desconocida, intente de nuevo' |