icnss = filter(lambda f: f.lower().endswith(".icns"),
nwzip.namelist())
package = json.load(nwzip.open("package.json"))
- app = join(nwdir, "node-webkit.app")
+ app = join(nwdir, "nwjs.app")
title = package["window"]["title"]
exe = package["name"].split(".")[-1]
plist = dict(
plist["CFBundleIconFile"] = icnss[0]
plistlib.writePlist(plist, join(app, "Contents/Info.plist"))
exedir = join(app, "Contents", "MacOS")
- shutil.move(join(exedir, "node-webkit"), join(exedir, exe))
+ shutil.move(join(exedir, "nwjs"), join(exedir, exe))
shutil.copy(nwpackage, join(app, "Contents", "Resources", "app.nw"))
shutil.move(app, join(app, "..", xp_filename(title) + ".app"))