mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Buildbox: use linked clone
This commit is contained in:
parent
eb8c238946
commit
a03a4a170b
1
.gitignore
vendored
1
.gitignore
vendored
@ -26,6 +26,7 @@ DerivedData
|
|||||||
*/xcuserdata/*
|
*/xcuserdata/*
|
||||||
buck-out/*
|
buck-out/*
|
||||||
.buckd/*
|
.buckd/*
|
||||||
|
tools/buck
|
||||||
AppBinary.xcworkspace/*
|
AppBinary.xcworkspace/*
|
||||||
Project.xcodeproj/*
|
Project.xcodeproj/*
|
||||||
Watch/Watch.xcodeproj/*
|
Watch/Watch.xcodeproj/*
|
||||||
|
@ -150,15 +150,24 @@ if [ "$BUILD_MACHINE" == "linux" ]; then
|
|||||||
done
|
done
|
||||||
elif [ "$BUILD_MACHINE" == "macOS" ]; then
|
elif [ "$BUILD_MACHINE" == "macOS" ]; then
|
||||||
if [ -z "$RUNNING_VM" ]; then
|
if [ -z "$RUNNING_VM" ]; then
|
||||||
SNAPSHOT_ID=$(prlctl snapshot-list "$VM_BASE_NAME" | grep -Eo '\{(\d|[a-f]|-)*\}' | tr '\n' '\0')
|
prlctl clone "$VM_BASE_NAME" --linked --name "$VM_NAME"
|
||||||
if [ -z "$SNAPSHOT_ID" ]; then
|
prlctl start "$VM_NAME"
|
||||||
echo "$VM_BASE_NAME is required to have one snapshot"
|
|
||||||
exit 1
|
echo "Getting VM IP"
|
||||||
fi
|
|
||||||
prlctl clone "$VM_BASE_NAME" --name "$VM_NAME"
|
while [ 1 ]; do
|
||||||
prlctl snapshot-switch "$VM_NAME" -i "$SNAPSHOT_ID"
|
TEST_IP=$(prlctl exec "$VM_NAME" "ifconfig | grep inet | grep broadcast | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -1 | tr '\n' '\0'" || echo "")
|
||||||
|
if [ ! -z "$TEST_IP" ]; then
|
||||||
|
RESPONSE=$(ssh -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null telegram@"$TEST_IP" -o ServerAliveInterval=60 -t "echo -n 1")
|
||||||
|
if [ "$RESPONSE" == "1" ]; then
|
||||||
|
VM_IP="$TEST_IP"
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
sleep 1
|
||||||
|
done
|
||||||
fi
|
fi
|
||||||
VM_IP=$(prlctl exec "$VM_NAME" "ifconfig | grep inet | grep broadcast | grep -Eo '([0-9]{1,3}\.){3}[0-9]{1,3}' | head -1 | tr '\n' '\0'")
|
echo "VM_IP=$VM_IP"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
scp -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -pr "$BUILDBOX_DIR/$CODESIGNING_SUBPATH" telegram@"$VM_IP":codesigning_data
|
scp -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -pr "$BUILDBOX_DIR/$CODESIGNING_SUBPATH" telegram@"$VM_IP":codesigning_data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user