2020-09-18 11:31:59 +08:00
|
|
|
import os
|
2020-08-16 08:25:51 +08:00
|
|
|
import update_res_app as updater
|
2018-11-02 11:51:14 +08:00
|
|
|
|
2020-09-18 11:31:59 +08:00
|
|
|
def is_excluded_file(filename):
|
|
|
|
excluded_files = [
|
|
|
|
'/images/bg_landscape_1',
|
|
|
|
'/images/bg_landscape_2',
|
|
|
|
'/images/bg_landscape_3',
|
|
|
|
'/images/bg_landscape_21',
|
|
|
|
'/images/bg_portrait_1',
|
|
|
|
'/images/bg_portrait_2',
|
|
|
|
'/images/bg_portrait_3',
|
|
|
|
'/fonts/ap.res',
|
|
|
|
'/fonts/default_full.res',
|
|
|
|
'/fonts/default_32.data',
|
|
|
|
'/fonts/default_96.data',
|
|
|
|
'/fonts/trado.res'
|
|
|
|
]
|
|
|
|
|
|
|
|
filename = filename.replace('\\', '/')
|
|
|
|
for f in excluded_files:
|
|
|
|
if (filename.find(f) >= 0):
|
|
|
|
return True
|
|
|
|
return False
|
|
|
|
|
|
|
|
AWTK_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
updater.run(AWTK_ROOT, is_excluded_file)
|