瀏覽代碼

添加研发sdk打包功能6

zengqb 5 年之前
父節點
當前提交
f2fcdbd69d
共有 2 個文件被更改,包括 3 次插入4 次删除
  1. 1 4
      package_utils_yfsdk.py
  2. 2 0
      package_web.py

+ 1 - 4
package_utils_yfsdk.py

@@ -40,10 +40,7 @@ def pack(game, sdk, config):
     if ret:
         return ret
 
-        # 复制res资源
-    ret = copyRes(game, sdk, subChannel, config)
-    if ret:
-        return ret
+
     # 复制app res资源
     ret = copyAppRes(game, sdk, subChannel, config)
     if ret:

+ 2 - 0
package_web.py

@@ -218,6 +218,8 @@ 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:
+            print('copyRes from--> ' + config['icon'])
+            print('copyRes to--> ' + iconPath)
             iconPath = os.path.join(subChannelPath, 'icon', mipmap, 'common_sdk_icon.png')
             file_utils.copyFile(config['icon'], iconPath)