mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
improve assets build script to support any file extensions in data folder.
This commit is contained in:
parent
9cf5ec3592
commit
369c68dfb7
@ -140,10 +140,11 @@ def gen_res_all_ui():
|
||||
xml_to_ui_bin(raw, bin)
|
||||
|
||||
def gen_res_all_data():
|
||||
for f in glob.glob(joinPath(INPUT_DIR, 'data/*.dat')):
|
||||
for f in glob.glob(joinPath(INPUT_DIR, 'data/*.*')):
|
||||
inc=copy.copy(f);
|
||||
raw=copy.copy(f);
|
||||
inc=inc.replace('.dat', '.data')
|
||||
_, extname = os.path.splitext(inc)
|
||||
inc=inc.replace(extname, '.data')
|
||||
inc=inc.replace(INPUT_DIR, OUTPUT_DIR)
|
||||
resgen(raw, inc)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user