[DEV] update build on new MacOs interface (add icon)

This commit is contained in:
Edouard DUPIN 2014-01-05 23:01:30 +01:00
parent 8f1dc7ae21
commit c90897e0cf
2 changed files with 9 additions and 3 deletions

View File

@ -227,8 +227,9 @@ class Target(lutinTarget.Target):
tmpFile.flush() tmpFile.flush()
tmpFile.close() tmpFile.close()
if "ICON" in pkgProperties.keys() \
lutinTools.copy_file(pkgProperties["ICON"], self.get_staging_folder(pkgName) + "/res/drawable/icon.png", True) and pkgProperties["ICON"] != "":
lutinTools.copy_file(pkgProperties["ICON"], self.get_staging_folder(pkgName) + "/res/drawable/icon.png", True)
if pkgProperties["ANDROID_MANIFEST"]!="": if pkgProperties["ANDROID_MANIFEST"]!="":

View File

@ -34,6 +34,11 @@ class Target(lutinTarget.Target):
debug.debug("------------------------------------------------------------------------") debug.debug("------------------------------------------------------------------------")
debug.info("Generate package '" + pkgName + "'") debug.info("Generate package '" + pkgName + "'")
debug.debug("------------------------------------------------------------------------") debug.debug("------------------------------------------------------------------------")
if "ICON" in pkgProperties.keys() \
and pkgProperties["ICON"] != "":
lutinTools.copy_file(pkgProperties["ICON"], self.get_staging_folder_data(pkgName) + "/icon.icns", True)
# http://www.sandroid.org/imcross/#Deployment # http://www.sandroid.org/imcross/#Deployment
infoFile=self.get_staging_folder(pkgName) + "/Info.plist" infoFile=self.get_staging_folder(pkgName) + "/Info.plist"
# Create the info file # Create the info file
@ -49,7 +54,7 @@ class Target(lutinTarget.Target):
tmpFile.write(" <key>CFBundleIdentifier</key>\n") tmpFile.write(" <key>CFBundleIdentifier</key>\n")
tmpFile.write(" <string>com."+pkgProperties["COMPAGNY_NAME2"]+"."+pkgName+"</string>\n") tmpFile.write(" <string>com."+pkgProperties["COMPAGNY_NAME2"]+"."+pkgName+"</string>\n")
tmpFile.write(" <key>CFBundleIconFile</key>\n") tmpFile.write(" <key>CFBundleIconFile</key>\n")
tmpFile.write(" <string>"+pkgName+".icns</string>\n") tmpFile.write(" <string>icon.icns</string>\n")
tmpFile.write(" </dict>\n") tmpFile.write(" </dict>\n")
tmpFile.write("</plist>\n") tmpFile.write("</plist>\n")
tmpFile.write("\n\n") tmpFile.write("\n\n")