fix package-deb script
This commit is contained in:
parent
f656dc4853
commit
a9773bcbc0
1 changed files with 5 additions and 3 deletions
|
@ -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..."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue