feat: include version in app.tar.gz filename (#1194)

This commit is contained in:
Fabian-Lars
2025-11-17 15:50:18 +01:00
committed by GitHub
parent 25fc10c426
commit db4399ef7e
3 changed files with 12 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
---
action: major
---
**Breaking Chagne**: `.app.tar.gz` & `.app.tar.gz.sig` files will now include the app version like all other bundles/installers.

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@@ -111,12 +111,17 @@ export function getAssetName(asset: Artifact, pattern?: string) {
const name = basename(asset.path, asset.ext);
const arch = '_' + asset.arch;
let platform = '';
let version = '';
if (asset.name === 'binary') {
platform = '_' + asset.platform;
}
return name + platform + arch + asset.ext;
if (asset.ext.includes('.app.tar.gz')) {
version = '_' + asset.version;
}
return name + platform + version + arch + asset.ext;
}
}