do not pushd

This commit is contained in:
Nikita Galaiko 2023-02-20 16:39:43 +01:00
parent 64617ad2b0
commit d9738b3906
No known key found for this signature in database
GPG Key ID: EBAB54E845BA519D

View File

@ -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")"