Browse Source

添加研发sdk打包功能4

zengqb 4 years ago
parent
commit
58a5c8bc7b
2 changed files with 3 additions and 2 deletions
  1. 2 2
      file_utils.py
  2. 1 0
      package_web_yfsdk.py

+ 2 - 2
file_utils.py

@@ -179,12 +179,12 @@ def copyFile(formFile, toFile, delete = False):
     拷贝文件
     '''
     if not os.path.isfile(formFile):
-        print('%s not a file!' % formFile)
+        print('----> %s not a file!' % formFile)
         return 1
 
     fpath, fname = os.path.split(toFile)  #分离文件名和路径
     if not os.path.exists(fpath):
-        #print('%s not exists, crate' % fpath)
+        print('%s not exists, crate' % fpath)
         os.makedirs(fpath)              #创建路径
 
     '''if os.path.exists(toFile) and os.path.getsize(formFile) > 104857600 and equalsFile(formFile, toFile):

+ 1 - 0
package_web_yfsdk.py

@@ -155,6 +155,7 @@ def copyRes(game, sdk, subChannel, config):
         mipmapSupport = ['mipmap-xhdpi', 'mipmap-xxhdpi', 'mipmap-xxxhdpi']
         for mipmap in mipmapSupport:
             iconPath = os.path.join(subChannelPath, 'icon', mipmap, 'common_sdk_icon.png')
+            print('yfsdk -> copyRes')
             file_utils.copyFile(config['icon'], iconPath)
 
     '''if 'switchIcon' in config and os.path.exists(config['switchIcon']):