Wrap content of unix releases in a top-level folder
This commit is contained in:
parent
f070c743cb
commit
f2e6a27c0e
1 changed files with 3 additions and 3 deletions
|
@ -1,13 +1,13 @@
|
|||
#!/bin/sh
|
||||
echo "Creating output directory"
|
||||
mkdir -p release/tmp
|
||||
mkdir -p release/tmp/polaris
|
||||
|
||||
echo "Copying package files"
|
||||
cp -r web docs/swagger src migrations Cargo.toml Cargo.lock res/unix/Makefile release/tmp
|
||||
cp -r web docs/swagger src migrations Cargo.toml Cargo.lock res/unix/Makefile release/tmp/polaris
|
||||
|
||||
echo "Creating tarball"
|
||||
POLARIS_VERSION=$(grep -m 1 ^version Cargo.toml | awk '{print $3}' | tr -d '"\r\n')
|
||||
tar -zc -C release/tmp -f release/polaris-$POLARIS_VERSION.tar.gz .
|
||||
tar -zc -C release/tmp -f release/polaris-$POLARIS_VERSION.tar.gz polaris
|
||||
|
||||
echo "Cleaning up"
|
||||
rm -rf release/tmp
|
||||
|
|
Loading…
Add table
Reference in a new issue