Skip to content

Commit

Permalink
[Build] Modified the RIDs sorted in descending order (#6539)
Browse files Browse the repository at this point in the history
  • Loading branch information
JongHeonChoi authored and jaehyun0cho committed Jan 7, 2025
1 parent 795bb0c commit 168de42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packaging/makerid.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
runtime_dir = os.path.join(scrpit_dir, "../pkg/Tizen.NET/runtime.json")
spec_dir = os.path.join(scrpit_dir, "csapi-tizenfx.spec")

def parse_rid_as_int(rid):
return [int(part) for part in rid.split(".")]

with open(runtime_dir) as json_file:
json_data = json.load(json_file)
json_string = json_data["runtimes"]
Expand All @@ -23,7 +26,7 @@
rid_list.append(key)

rid_list = list(set(rid_list))
rid_list.sort(reverse=True)
rid_list = sorted(rid_list, key=parse_rid_as_int, reverse=True)

f = open(spec_dir,'r')
origin_data = f.read()
Expand Down

0 comments on commit 168de42

Please sign in to comment.