mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-08 09:12:59 +03:00
Remove unwanted prefix from zipBall and tarBall file name (#455)
- use tagname as the final filaname
This commit is contained in:
1 parent
0d63989c67
commit
0431bf60eb
2 files changed
+1232
-1233
No files matched your search
Vendored
+1230
-1229
File diff suppressed because it is too large.
Load diff
@@ -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
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user