* updated release version to 0.18.6

* updated build tools to have core files zip naming scheme be based on version information contained in build.number.properties
* added new python library to allow reading java property files, remember to add the library to your PYTHONPATH before executing the python script otherwise the script will fail.

`
This commit is contained in:
techdragon.nguyen@gmail.com
2012-05-07 05:09:12 +00:00
parent baf4b3b8da
commit e2a0fef600
18 changed files with 838 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
import sys
import os
import zipfile
from pyjavaproperties import Properties
from optparse import OptionParser
def createResZipFile(filename):
@@ -25,15 +26,27 @@ def createResZipFile(filename):
utilities.addFolderToZip(zip_file, 'ai')
zip_file.close()
def getFilename():
p = Properties();
p.load(open('../../build.number.properties'));
minor = p['build.minor'];
major = p['build.major'];
point = p['build.point'];
filename = 'core_' + major + minor + point
return filename
def createStandardResFile():
filename = 'core_0184.zip'
print "Creating Standard Resource File"
filename = getFilename() + '.zip'
createResZipFile( filename )
print >> sys.stderr, 'Created Resource Package for Standard Distribution: {0}'.format( filename)
def createIosResFile():
print 'Preparing Resource Package for iOS'
utilities = ZipUtilities()
filename = 'core_0184_iOS.zip'
filename = getFilename() + '_iOS.zip'
#createResZipFile( filename )
zip_file = zipfile.ZipFile(filename, 'a', zipfile.ZIP_STORED)
zip_file.write("../../iOS/Res/rules/modrules.xml", "rules/modrules.xml", zipfile.ZIP_STORED)