fix package-deb script

This commit is contained in:
Carson McManus 2021-08-25 10:48:03 -04:00
parent f656dc4853
commit a9773bcbc0

View file

@ -1,11 +1,13 @@
#!/bin/bash #!/bin/bash
BIN_PATH="target/steamguard-cli" set -e
if [[ ! -f "${BIN_PATH}" ]]; then
BIN_PATH="target/release/steamguard-cli"
if [[ ! -f "$BIN_PATH" ]]; then
echo "ERROR: Could not find release binaries, building them..." echo "ERROR: Could not find release binaries, building them..."
cargo build --release cargo build --release
fi fi
VERSION=$("$BIN_PATH" --version | cut -d " " -f 2)"-0" VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)-0"
TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION" TEMP_PKG_PATH="/tmp/steamguard-cli_$VERSION"
echo "Building Debian package for v$VERSION..." echo "Building Debian package for v$VERSION..."