From ef382c1dceab417db1f96e80f366445fa6b32fc6 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Thu, 22 Jun 2023 16:42:44 -0400 Subject: [PATCH] add windows builds to release script, update readme (#195) --- README.md | 4 ++++ scripts/full-release.sh | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dafbf1b..8707174 100644 --- a/README.md +++ b/README.md @@ -32,8 +32,12 @@ cargo build --release # Usage `steamguard-cli` looks for your `maFiles/manifest.json` in at these paths, in this order: +Linux: - `~/.config/steamguard-cli/maFiles/` - `~/maFiles/` +Windows: +- `%APPDATA%\Roaming\steamguard-cli\maFiles\` +- `%USERPROFILE%\maFiles\` Your `maFiles` can be created with or imported from [Steam Desktop Authenticator][SDA]. You can create `maFiles` with steamguard-cli using the `setup` action (`steamguard setup`). diff --git a/scripts/full-release.sh b/scripts/full-release.sh index 7339292..322ed14 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -77,11 +77,14 @@ if ! which cross; then fi BUILD_TARGET="x86_64-unknown-linux-musl" +BUILD_TARGET2="x86_64-pc-windows-gnu" cross build --release "--target=$BUILD_TARGET" +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" 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 @@ -93,5 +96,5 @@ if [[ $DRY_RUN == false ]]; then if [[ $(gh release list | grep -i "Draft" | grep -i "$VERSION" && echo "true" || echo "false") == "true" ]]; then gh release delete --yes "$VERSION" fi - gh release create "$VERSION" --title "$VERSION" --draft "$BIN_PATH" "./steamguard-cli_$RAW_VERSION-0.deb" + gh release create "$VERSION" --title "$VERSION" --draft "$BIN_PATH" "$BIN_PATH2" "./steamguard-cli_$RAW_VERSION-0.deb" fi