Skip to content

Commit 193083b

Browse files
committed
refactory: package name
1 parent a12f20e commit 193083b

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

electron-builder.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
appId: com.example.smart-sub
2-
productName: Smart Sub
1+
appId: com.example.smartsub
2+
productName: SmartSub
33
copyright: Copyright © 2024 buxuku
44
directories:
55
output: dist

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"private": true,
3-
"name": "smart-sub",
3+
"name": "smartsub",
44
"description": "视频转字幕,字幕翻译软件",
55
"version": "2.3.4",
66
"author": "buxuku <buxuku@gmail.com>",

0 commit comments

Comments
 (0)