Browse Source

增加角标

yhz 5 years ago
parent
commit
a6d4798fee
1 changed files with 3 additions and 0 deletions
  1. 3 0
      package_web_record.py

+ 3 - 0
package_web_record.py

@@ -201,6 +201,9 @@ def copyRes(game, sdk, subChannel, config):
     if 'icon' in config and os.path.exists(config['icon']):
         mipmapSupport = ['mipmap-xhdpi', 'mipmap-xxhdpi', 'mipmap-xxxhdpi']
         for mipmap in mipmapSupport:
+            mipmapPath = os.path.join(subChannelPath, 'icon', mipmap)
+            if not os.path.exists(mipmapPath):
+                os.makedirs(mipmapPath) 
             iconPath = os.path.join(subChannelPath, 'icon', mipmap, 'record_sdk_icon.png')
             if mipmap == 'mipmap-xhdpi':
                 size = 96