4 scrpit_dir = os.path.dirname(os.path.abspath(__file__))
5 runtime_dir = os.path.join(scrpit_dir, "../pkg/Tizen.NET/runtime.json")
6 spec_dir = os.path.join(scrpit_dir, "csapi-tizenfx.spec")
8 with open(runtime_dir) as json_file:
9 json_data = json.load(json_file)
10 json_string = json_data["runtimes"]
12 key_list = json_string.keys()
16 key = key.replace("-armel", "")
17 key = key.replace("-arm64", "")
18 key = key.replace("-x86", "")
19 key = key.replace("-x64", "")
20 key = key.replace("tizen.", "")
21 key = key.replace("tizen", "")
25 rid_list = list(set(rid_list))
28 f = open(spec_dir,'r')
29 origin_data = f.read()
32 new_data = origin_data.replace("@rid_version@", ':'.join(rid_list))
34 f = open(spec_dir, 'w')