删除多余的缓存文件
This commit is contained in:
parent
bfb8a45ac5
commit
c8fde0d286
|
@ -229,6 +229,10 @@ storePassword=123456
|
||||||
FileUtils.delete(dst, True)
|
FileUtils.delete(dst, True)
|
||||||
FileUtils.decompress(res_path, temp_dst)
|
FileUtils.decompress(res_path, temp_dst)
|
||||||
|
|
||||||
|
build_path = os.path.join(temp_dst, "build")
|
||||||
|
if os.path.exists(build_path):
|
||||||
|
FileUtils.delete(build_path, True)
|
||||||
|
|
||||||
if os.listdir(temp_dst).index("unityLibrary") >= 0:
|
if os.listdir(temp_dst).index("unityLibrary") >= 0:
|
||||||
FileUtils.copy(os.path.join(temp_dst, "unityLibrary"), dst)
|
FileUtils.copy(os.path.join(temp_dst, "unityLibrary"), dst)
|
||||||
else:
|
else:
|
||||||
|
@ -239,7 +243,8 @@ storePassword=123456
|
||||||
text = text.replace("compileSdkVersion", """
|
text = text.replace("compileSdkVersion", """
|
||||||
namespace "com.unity3d.player"
|
namespace "com.unity3d.player"
|
||||||
compileSdkVersion""")
|
compileSdkVersion""")
|
||||||
text = text.replace("unityStreamingAssets.tokenize(', ')", '[".unity3d", ".bundle", ".version", ".bytes", ".hash"]')
|
text = text.replace("unityStreamingAssets.tokenize(', ')",
|
||||||
|
'[".unity3d", ".bundle", ".version", ".bytes", ".hash"]')
|
||||||
text = text.replace("apply plugin: 'com.android.library'", """
|
text = text.replace("apply plugin: 'com.android.library'", """
|
||||||
plugins {
|
plugins {
|
||||||
id 'com.android.library'
|
id 'com.android.library'
|
||||||
|
|
Loading…
Reference in New Issue