Browse Source

生成icon路径

zqbo 5 years ago
parent
commit
3718585fa4
1 changed files with 4 additions and 1 deletions
  1. 4 1
      package_web_record.py

+ 4 - 1
package_web_record.py

@@ -207,8 +207,11 @@ def copyRes(game, sdk, subChannel, config):
         for mipmap in mipmapSupport:
             mipmapPath = os.path.join(subChannelPath, 'icon', mipmap)
             if not os.path.exists(mipmapPath):
-                os.makedirs(mipmapPath) 
+                os.makedirs(mipmapPath)
             iconPath = os.path.join(subChannelPath, 'icon', mipmap, 'record_sdk_icon.png')
+            if not os.path.exists(iconPath):
+                os.makedirs(iconPath)
+                print("iconPath ==> " + iconPath)
             if mipmap == 'mipmap-xhdpi':
                 size = 96
             elif mipmap == 'mipmap-xxhdpi':