mirror of
https://github.com/agersant/polaris
synced 2024-12-03 10:09:09 +00:00
14 lines
423 B
Bash
14 lines
423 B
Bash
#!/bin/sh
|
|
echo "Creating output directory"
|
|
mkdir -p release/tmp
|
|
|
|
echo "Copying package files"
|
|
cp -r web src Cargo.toml Cargo.lock res/unix/Makefile release/tmp
|
|
cp res/default_config.toml release/tmp/polaris.toml
|
|
|
|
echo "Creating tarball"
|
|
POLARIS_VERSION=$(grep ^version Cargo.toml | awk '{print $3}' | tr -d '"\r\n')
|
|
tar -zc -C release/tmp -f release/polaris-$POLARIS_VERSION.tar.gz .
|
|
|
|
echo "Cleaning up"
|
|
rm -rf release/tmp
|