mirror of
https://github.com/veeso/termscp.git
synced 2026-07-28 10:31:03 +02:00
Auto update (w/ cli)
This commit is contained in:
30
dist/build/macos.sh
vendored
Executable file
30
dist/build/macos.sh
vendored
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: macos.sh <version>"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
VERSION=$1
|
||||
|
||||
set -e # Don't fail
|
||||
|
||||
# Go to root dir
|
||||
cd ../../
|
||||
# Check if in correct directory
|
||||
if [ ! -f Cargo.toml ]; then
|
||||
echo "Please start macos.sh from dist/build/ directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Build release
|
||||
cargo build --release && cargo strip
|
||||
# Make pkg
|
||||
cd target/release/
|
||||
PKG="termscp-v${VERSION}-x86_64-apple-darwin.tar.gz"
|
||||
tar czf $PKG termscp
|
||||
sha256sum $PKG
|
||||
mkdir -p ../../dist/pkgs/macos/
|
||||
mv $PKG ../../dist/pkgs/macos/$PKG
|
||||
|
||||
exit $?
|
||||
Reference in New Issue
Block a user