mirror of
https://gitee.com/zlgopen/awtk.git
synced 2024-11-29 18:48:09 +08:00
fix build scripts for windows
This commit is contained in:
parent
4a083aaa3e
commit
5fef4766d5
@ -411,6 +411,7 @@ def gen_res_json_one(res_type, files):
|
||||
result= "\n " + res_type + ': [\n'
|
||||
for f in files:
|
||||
uri = f.replace(os.getcwd(), "")[1:]
|
||||
uri = uri.replace('\\', '/');
|
||||
filename, extname = os.path.splitext(uri)
|
||||
basename = os.path.basename(filename)
|
||||
result = result + ' {name:"' + basename + '\", uri:"' + uri;
|
||||
|
Loading…
Reference in New Issue
Block a user