diff --git a/scripts/release.sh b/scripts/release.sh index e0141689a..9ac312b95 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -77,12 +77,10 @@ function arch() { ARCH="$(arch)" OS="$(os)" -DIST="release/$OS/$ARCH" +DIST="release" function tauri() { - pushd "$PWD/.." >/dev/null - pnpm tauri "$@" - popd >/dev/null + (cd "$PWD/.." && pnpm tauri "$@") } while [[ $# -gt 0 ]]; do @@ -183,7 +181,7 @@ jq '.package.version="'"$VERSION"'"' "$PWD/../src-tauri/tauri.conf.json" >"$TMP_ # build the app tauri build --config "$TMP_DIR/tauri.conf.json" -BUNDLE_DIR="./src-tauri/target/release/bundle" +BUNDLE_DIR="$PWD/../src-tauri/target/release/bundle" MACOS_DMG="$(find "$BUNDLE_DIR/dmg" -depth 1 -type f -name "*.dmg")" MACOS_UPDATER="$(find "$BUNDLE_DIR/macos" -depth 1 -type f -name "*.tar.gz")" MACOS_UPDATER_SIG="$(find "$BUNDLE_DIR/macos" -depth 1 -type f -name "*.tar.gz.sig")"