|
@@ -163,6 +163,7 @@ def change_logo(c_code_path, lib_dest, logo, logo_float=None):
|
|
|
app_icon_set = [29,40,57,58,60,80,87,114,120,180,1024]
|
|
|
app_icon_dir = os.path.join(c_code_path, 'Assets.xcassets/AppIcon.appiconset')
|
|
|
app_float_dir = os.path.join(lib_dest, 'NexilisLite/Resource/Assets.xcassets/pb_button.imageset')
|
|
|
+ app_launch_dir = os.path.join(c_code_path, 'Assets.xcassets/pb_icon.imageset')
|
|
|
if isinstance(logo, str):
|
|
|
# try:
|
|
|
# logo_url = requests.get('https://newuniverse.io/dashboardv2/uploads/logo/{}'.format(logo))
|
|
@@ -197,6 +198,16 @@ def change_logo(c_code_path, lib_dest, logo, logo_float=None):
|
|
|
# l = l.resize((512, 512))
|
|
|
# l.save(img_path, "PNG")
|
|
|
# except:
|
|
|
+ try:
|
|
|
+ logo_launch_path = os.path.join(app.asset_folder, "logofloat", "{}".format(logo_float))
|
|
|
+ img_path = os.path.join(app_launch_dir, "nexilis_icon.png".format(size))
|
|
|
+ with open(logo_launch_path, "rb") as f:
|
|
|
+ l = Image.open(f)
|
|
|
+ l = l.resize((size, size))
|
|
|
+ l.save(img_path, "PNG")
|
|
|
+ except:
|
|
|
+ print("error logolaunch: {}".format(logo_float))
|
|
|
+ return
|
|
|
try:
|
|
|
logo_float_path = os.path.join(app.asset_folder, "logofloat", "{}".format(logo_float))
|
|
|
img_path = os.path.join(app_float_dir, "pb_button.png".format(size))
|