Migrate from node-webkit to NW.js.
[pwl6.git] / tools / generate-osx-app
index dd05cdd..57d80a0 100755 (executable)
@@ -25,7 +25,7 @@ def main(nwdir, nwpackage):
     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(
@@ -49,7 +49,7 @@ def main(nwdir, nwpackage):
         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"))