Before buildx test
This commit is contained in:
@@ -6,28 +6,10 @@ rm -rf $HOME/.config/unity3d
|
||||
rm -rf /home/unity/.config/unity3d
|
||||
|
||||
#Add ssh key information for resolving packages.
|
||||
if [[ -n "$SSH_PUBLIC_KEY" && -n "$SSH_PRIVATE_KEY" ]]; then
|
||||
echo "ADDING SSH KEYS!"
|
||||
SSH_DIR="/home/$(whoami)/.ssh"
|
||||
mkdir -p $SSH_DIR
|
||||
bash /scripts/add_ssh_keys.sh
|
||||
|
||||
echo "$SSH_PUBLIC_KEY" > $SSH_DIR/id_rsa.pub
|
||||
echo "$SSH_PRIVATE_KEY" > $SSH_DIR/id_rsa
|
||||
cat << EOF > $SSH_DIR/config
|
||||
Host *
|
||||
StrictHostKeyChecking no
|
||||
EOF
|
||||
|
||||
chmod 600 $SSH_DIR/id_rsa
|
||||
chmod 644 $SSH_DIR/id_rsa.pub
|
||||
cat $SSH_DIR/config
|
||||
fi
|
||||
|
||||
#Activate Unity
|
||||
if [[ "$SERIAL" == "personal" ]]; then
|
||||
UnityBuilder activate -i /usr/bin/unity-editor -u $EMAIL -p $PASSWORD
|
||||
else
|
||||
unity-editor $DEFAULT_ARGS -serial $SERIAL -username $EMAIL -password $PASSWORD
|
||||
if [[ "$SERIAL" != "activated" ]]; then
|
||||
bash /scripts/activate_license.sh "$SERIAL" "$EMAIL" "$PASSWORD"
|
||||
fi
|
||||
|
||||
#Run the command.
|
||||
|
||||
Reference in New Issue
Block a user