fix: exclude jniLibs and build dirs from rsync upload
Some checks failed
Mirror to GitHub / mirror (push) Failing after 42s
Build Release Binaries / build-amd64 (push) Failing after 3m41s

Prevents stale .so files from local builds being synced to the VM
and creating duplicate android/android/ nested directories. The VM's
cargo-ndk generates fresh .so files — local ones must not interfere.

Also cleans any leftover android/android/ dirs from previous bad syncs.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Siavash Sameni
2026-04-07 06:37:09 +04:00
parent b82ce399d8
commit a08e5245e0

View File

@@ -185,8 +185,12 @@ do_upload() {
--exclude='dist' \ --exclude='dist' \
--exclude='desktop/src-tauri/gen' \ --exclude='desktop/src-tauri/gen' \
--exclude='android/keystore/*.jks' \ --exclude='android/keystore/*.jks' \
--exclude='android/app/src/main/jniLibs' \
--exclude='android/app/build' \
-e "ssh $SSH_OPTS -i $SSH_KEY_PATH" \ -e "ssh $SSH_OPTS -i $SSH_KEY_PATH" \
"$PROJECT_DIR/" "$REMOTE_USER@$ip:/root/wzp-build/" "$PROJECT_DIR/" "$REMOTE_USER@$ip:/root/wzp-build/"
# Clean any stale nested android/ dirs (from previous bad syncs)
ssh_cmd "rm -rf /root/wzp-build/android/android 2>/dev/null; true"
echo " Source uploaded." echo " Source uploaded."
} }