Skip to content

Commit ac343ef

Browse files
committed
fixes
1 parent ccad3f3 commit ac343ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/scripts/json_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ def save_platform_json(platform_folder, asset_json, tag):
112112
# Remove any existing entry with the same path
113113
list_data['builds'] = [
114114
build for build in list_data['builds']
115-
if build['path'] != asset_json['path']
115+
if build['version'] != asset_json['version']
116116
]
117117
# Add the new build
118118
list_data['builds'].append(asset_json)
119119

120120
# Update releases
121121
version = asset_json['version']
122-
list_data['releases'][version] = asset_json['path']
122+
list_data['releases'][version] = f"{asset_json['name']}+{asset_json['longVersion']}"
123123

124124
# Update latest release
125125
list_data['latestRelease'] = version

0 commit comments

Comments
 (0)