mirror of
https://github.com/nushell/nushell.git
synced 2024-11-25 09:53:43 +01:00
Prepend directory to the binary tarball (#6701)
* Prepend directory to the binary tarball According to https://www.gnu.org/software/tar/manual/html_section/transform.html, use `--transform` parameter to prepend directory to each file name. Closes #6676 * Don't depend on GNU tar
This commit is contained in:
parent
1ec41a0ab4
commit
4fdf5c663c
12
.github/workflows/release-pkg.nu
vendored
12
.github/workflows/release-pkg.nu
vendored
@ -90,10 +90,16 @@ if ($ver | str trim | is-empty) {
|
||||
cd $dist; $'(char nl)Creating release archive...'; hr-line
|
||||
if $os in ['ubuntu-latest', 'macos-latest'] {
|
||||
|
||||
$'(char nl)(ansi g)Archive contents:(ansi reset)'; hr-line; ls
|
||||
let files = (ls | get name)
|
||||
let dest = $'($bin)-($version)-($target)'
|
||||
let archive = $'($dist)/($dest).tar.gz'
|
||||
|
||||
let archive = $'($dist)/($bin)-($version)-($target).tar.gz'
|
||||
tar czf $archive *
|
||||
mkdir $dest
|
||||
$files | each {|it| mv $it $dest } | ignore
|
||||
|
||||
$'(char nl)(ansi g)Archive contents:(ansi reset)'; hr-line; ls $dest
|
||||
|
||||
tar -czf $archive $dest
|
||||
print $'archive: ---> ($archive)'; ls $archive
|
||||
echo $'::set-output name=archive::($archive)'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user