File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -270,15 +270,20 @@ jobs:
270270 // Sort files to ensure deterministic order, e.g., by URL
271271 platformYamlData[platform].sort((a, b) => a.url.localeCompare(b.url));
272272
273+ let outputFileName = `latest-${platform}.yml`;
274+ if (platform === 'windows') {
275+ outputFileName = 'latest.yml';
276+ }
277+
273278 const finalYaml = {
274279 version: packageVersion,
275280 files: platformYamlData[platform],
276- path: `latest-${platform}.yml` , // This is the conventional name for the update file itself
281+ path: outputFileName , // Use the determined output file name
277282 releaseDate: releaseDate,
278283 };
279- const yamlPath = path.join(finalReleaseAssetsDir, `latest-${platform}.yml` );
284+ const yamlPath = path.join(finalReleaseAssetsDir, outputFileName );
280285 fs.writeFileSync(yamlPath, yaml.dump(finalYaml));
281- console.log(`Generated ${yamlPath} with ${finalYaml.files.length} entries.`);
286+ console.log(`Generated ${yamlPath} for ${platform} with ${finalYaml.files.length} entries.`);
282287 }
283288 }
284289 console.log('Final release assets prepared in:', finalReleaseAssetsDir);
Original file line number Diff line number Diff line change 1- appId : com.example.smart-sub
2- productName : Smart Sub
1+ appId : com.example.smartsub
2+ productName : SmartSub
33copyright : Copyright © 2024 buxuku
44directories :
55 output : dist
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
3- "name" : " smart-sub " ,
3+ "name" : " smartsub " ,
44 "description" : " 视频转字幕,字幕翻译软件" ,
55 "version" : " 2.3.4" ,
66 "author" : " buxuku <buxuku@gmail.com>" ,
You can’t perform that action at this time.
0 commit comments