From b5d32a689de439763301da55eae433cc34ce23bc Mon Sep 17 00:00:00 2001 From: Ignacio Rodríguez Date: Fri, 21 Dec 2012 17:14:36 +0000 Subject: Ahora edita: activity.info y version --- diff --git a/Change.py b/Change.py index 5667d1f..3a0d0bf 100644 --- a/Change.py +++ b/Change.py @@ -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' -- cgit v0.9.1