main: tar change directory

This commit is contained in:
Dawid Dziurla 2020-03-26 16:00:12 +01:00
parent 25ee9fdc80
commit 77636126b4
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B

View file

@ -66,9 +66,10 @@ async function main() {
"tar", "tar",
"--exclude-vcs", "--exclude-vcs",
"--exclude", "./debian", "--exclude", "./debian",
"--transform", `s;^${sourceDirectory};${package}-${version};`, "--transform", `s/^\./${package}-${version}/`,
"-cvzf", `${buildDirectory}/${package}_${version}.orig.tar.gz`, "-cvzf", `${buildDirectory}/${package}_${version}.orig.tar.gz`,
sourceDirectory "-C", sourceDirectory,
"./"
]) ])
core.endGroup() core.endGroup()
} }