23 lines
431 B
Bash
23 lines
431 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -e
|
||
|
|
||
|
VERSION=0.4.0
|
||
|
TMPPATH=ZIP_TMP_PATH
|
||
|
mkdir "$TMPPATH"
|
||
|
cd "$TMPPATH"
|
||
|
|
||
|
SRCPATH="outfly_v$VERSION"
|
||
|
mkdir "$SRCPATH"
|
||
|
|
||
|
cp ../README.md "$SRCPATH"
|
||
|
cp ../target/x86_64-pc-windows-gnu/release/outfly.exe "$SRCPATH"
|
||
|
zip -v -r -9 ../"outfly_v${VERSION}_windows.zip" "$SRCPATH"
|
||
|
|
||
|
rm "$SRCPATH"/outfly.exe
|
||
|
cp ../target/release/outfly "$SRCPATH"
|
||
|
zip -v -r -9 ../"outfly_v${VERSION}_linux.zip" "$SRCPATH"
|
||
|
|
||
|
cd ..
|
||
|
rm -rf "$TMPPATH"
|