diff --git a/scripts/release.sh b/scripts/release.sh
index e0861c4..e1667e7 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -19,7 +19,7 @@ build_darwin() {
     for arch in "${darwin_archs[@]}"; do
         rustup target add $arch
         echo "Building for macos architecture: $arch"
-        CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache
+        CLI_BUILD_ARCH="$arch" pnpm nx run-many --target=build:bindings --skip-nx-cache
     done
 }
 
@@ -27,7 +27,7 @@ build_linux() {
     for arch in "${linux_archs[@]}"; do
         rustup target add $arch
         echo "Building for linux architecture: $arch"
-        CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache
+        CLI_BUILD_ARCH="$arch" pnpm nx run-many --target=build:bindings --skip-nx-cache
     done
 }
 
@@ -35,7 +35,7 @@ build_windows() {
     for arch in "${windows_archs[@]}"; do
         rustup target add $arch
         echo "Building for windows architecture: $arch"
-       CLI_BUILD_ARCH=$arch pnpm nx run-many --target=build:bindings --skip-nx-cache
+        CLI_BUILD_ARCH="$arch" pnpm nx run-many --target=build:bindings --skip-nx-cache
     done
 }