change built artifact name from steamguard-cli
to steamguard
(#208)
This commit is contained in:
parent
3eb17d78d2
commit
9835b8a52f
3 changed files with 9 additions and 8 deletions
|
@ -19,10 +19,14 @@ license = "GPL-3.0-or-later"
|
|||
default = ["qr"]
|
||||
qr = ["qrcode"]
|
||||
|
||||
[[bin]]
|
||||
name = "steamguard-cli"
|
||||
# [[bin]]
|
||||
# name = "steamguard-cli"
|
||||
# filename = "steamguard" # TODO: uncomment when https://github.com/rust-lang/cargo/issues/9778 is stablized.
|
||||
|
||||
[[bin]]
|
||||
name = "steamguard"
|
||||
path = "src/main.rs"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
|
|
|
@ -83,8 +83,8 @@ cross build --release "--target=$BUILD_TARGET2"
|
|||
|
||||
./scripts/package-deb.sh
|
||||
|
||||
BIN_PATH="target/$BUILD_TARGET/release/steamguard-cli"
|
||||
BIN_PATH2="target/$BUILD_TARGET2/release/steamguard-cli.exe"
|
||||
BIN_PATH="target/$BUILD_TARGET/release/steamguard"
|
||||
BIN_PATH2="target/$BUILD_TARGET2/release/steamguard.exe"
|
||||
RAW_VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)"
|
||||
TAGGED_VERSION="$(git tag | grep "^v" | tail -n 1 | tr -d v)"
|
||||
if [[ "v$RAW_VERSION" != "v$TAGGED_VERSION" ]]; then
|
||||
|
|
|
@ -10,7 +10,7 @@ if ! which cross; then
|
|||
cargo install cross
|
||||
fi
|
||||
|
||||
BIN_PATH="target/x86_64-unknown-linux-musl/release/steamguard-cli"
|
||||
BIN_PATH="target/x86_64-unknown-linux-musl/release/steamguard"
|
||||
if [[ ! -f "$BIN_PATH" ]]; then
|
||||
echo "ERROR: Could not find release binaries, building them..."
|
||||
cross build --release --target=x86_64-unknown-linux-musl
|
||||
|
@ -24,9 +24,6 @@ mkdir -p "$TEMP_PKG_PATH/etc/bash_completion.d"
|
|||
mkdir -p "$TEMP_PKG_PATH/DEBIAN"
|
||||
|
||||
cp "$BIN_PATH" "$TEMP_PKG_PATH/usr/local/bin/steamguard"
|
||||
pushd "$TEMP_PKG_PATH/usr/local/bin/"
|
||||
ln -s "./steamguard" "./steamguard-cli"
|
||||
popd
|
||||
"$BIN_PATH" completion --shell bash > "$TEMP_PKG_PATH/etc/bash_completion.d/steamguard"
|
||||
|
||||
cat <<EOT >> $TEMP_PKG_PATH/DEBIAN/control
|
||||
|
|
Loading…
Reference in a new issue