Skip to content

Commit

Permalink
Create single-directory release archives (ordinals#2537)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Oct 24, 2023
1 parent c7df8bb commit fc58afd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/package
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@ if [[ $OS == windows-latest ]]; then
fi

echo "Copying release files..."
mkdir dist
mkdir -p dist/ord-$VERSION
cp \
$EXECUTABLE \
Cargo.lock \
Cargo.toml \
LICENSE \
README.md \
$DIST
$DIST/ord-$VERSION

cd $DIST
echo "Creating release archive..."
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ say_err "Destination: $dest"
say_err "Archive: $archive"

td=$(mktemp -d || mktemp -d -t tmp)
curl --proto =https --tlsv1.2 -sSfL $archive | tar -C $td -xz
curl --proto =https --tlsv1.2 -sSfL $archive | tar --directory $td --strip-components 1 -xz

for f in $(ls $td); do
test -x $td/$f || continue
Expand Down

0 comments on commit fc58afd

Please sign in to comment.