Remove unwanted prefix from zipBall and tarBall file name (#455)

- use tagname as the final filaname
This commit is contained in:
Robin Raju authored and GitHub committed 2022-06-10 22:36:34 +02:00
1 parent 0d63989c67
commit 0431bf60eb
2 files changed
+1232 -1233

No files matched your search

+1230 -1229
View File
File diff suppressed because it is too large. Load diff
+2 -4
View File
@@ -140,18 +140,16 @@ export class ReleaseDownloader {
}
if (downloadSettings.tarBall) {
const fName = downloadSettings.sourceRepoPath.split("/")[1]
downloads.push({
fileName: `${fName}-${ghRelease.name}.tar.gz`,
fileName: `${ghRelease.tag_name}.tar.gz`,
url: ghRelease.tarball_url,
isTarBallOrZipBall: true
})
}
if (downloadSettings.zipBall) {
const fName = downloadSettings.sourceRepoPath.split("/")[1]
downloads.push({
fileName: `${fName}-${ghRelease.name}.zip`,
fileName: `${ghRelease.tag_name}.zip`,
url: ghRelease.zipball_url,
isTarBallOrZipBall: true
})