mirror of
https://github.com/tauri-apps/tauri-action.git
synced 2026-01-31 00:35:20 +01:00
feat: include version in app.tar.gz filename (#1194)
This commit is contained in:
5
.changes/apptargz-version.md
Normal file
5
.changes/apptargz-version.md
Normal 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
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user