|
@@ -78,7 +78,7 @@ def change_name(path_dest, app_name, package_id):
|
|
|
xcproj = os.path.join(path_dest, "{}.xcodeproj".format(app_name))
|
|
|
xcwork = os.path.join(path_dest, "{}.xcworkspace".format(app_name))
|
|
|
shutil.move(os.path.join(path_dest, "AppBuilder.xcodeproj"), xcproj)
|
|
|
- shutil.move(os.path.join(path_dest, "AppBuilder.xcworkspace"), xcwork)
|
|
|
+ # shutil.move(os.path.join(path_dest, "AppBuilder.xcworkspace"), xcwork)
|
|
|
xcshareddata = os.path.join(xcproj, "xcshareddata/xcschemes", "{}.xcscheme".format(app_name))
|
|
|
shutil.move(os.path.join(xcproj, "xcshareddata/xcschemes", "AppBuilder.xcscheme"), xcshareddata)
|
|
|
podfile = os.path.join(path_dest, "Podfile")
|
|
@@ -121,14 +121,14 @@ def change_name(path_dest, app_name, package_id):
|
|
|
f.write(replaced)
|
|
|
except FileNotFoundError:
|
|
|
pass
|
|
|
+ os.chdir(path_dest)
|
|
|
+ subprocess.run(["pod", "install"])
|
|
|
contentsw = os.path.join(xcwork, "contents.xcworkspacedata")
|
|
|
with open(contentsw, "r") as f:
|
|
|
file_source = f.read()
|
|
|
replaced = file_source.replace("AppBuilder", app_name)
|
|
|
with open(contentsw, "w") as f:
|
|
|
f.write(replaced)
|
|
|
- os.chdir(path_dest)
|
|
|
- subprocess.run(["pod", "install"])
|
|
|
|
|
|
|
|
|
def change_certificate(path_dest, key, keystore, keytool):
|
|
@@ -278,8 +278,8 @@ def change_background(c_code_path, background):
|
|
|
|
|
|
|
|
|
def change_fb(lib_dest, fb_icon):
|
|
|
- default_fb_icon = ["pb_button_chat", "pb_button_call", "pb_button_cc", "pb_button_stream"]
|
|
|
- for i in range(4):
|
|
|
+ default_fb_icon = ["pb_button_chat", "pb_button_call", "pb_button_cc", "pb_button_post", "pb_button_stream"]
|
|
|
+ for i in range(5):
|
|
|
if not fb_icon[i]:
|
|
|
continue
|
|
|
img_path = "NexilisLite/Resource/Assets.xcassets"
|