fix: exclude jniLibs and build dirs from rsync upload
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:
@@ -185,8 +185,12 @@ do_upload() {
|
||||
--exclude='dist' \
|
||||
--exclude='desktop/src-tauri/gen' \
|
||||
--exclude='android/keystore/*.jks' \
|
||||
--exclude='android/app/src/main/jniLibs' \
|
||||
--exclude='android/app/build' \
|
||||
-e "ssh $SSH_OPTS -i $SSH_KEY_PATH" \
|
||||
"$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."
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user