fix build scripts for windows

This commit is contained in:
lixianjing 2019-04-23 17:39:50 +08:00
parent 4a083aaa3e
commit 5fef4766d5

View File

@ -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;