diff --git a/images/macos/templates/macOS-11.anka.pkr.hcl b/images/macos/templates/macOS-11.anka.pkr.hcl index e2e1ee2ed..6c86c5f20 100644 --- a/images/macos/templates/macOS-11.anka.pkr.hcl +++ b/images/macos/templates/macOS-11.anka.pkr.hcl @@ -189,13 +189,10 @@ build { } provisioner "shell" { inline = [ - "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}" + "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}", + "echo ${var.xcversion_auth_cookie} | base64 --decode > ~/.fastlane/spaceship/${var.xcode_install_user}/cookie" ] } - provisioner "file" { - destination = "~/.fastlane/spaceship/${var.xcode_install_user}/cookie" - source = "${var.xcversion_auth_cookie}" - } provisioner "shell" { script = "./provision/core/xcode.ps1" environment_vars = [ diff --git a/images/macos/templates/macOS-12.anka.pkr.hcl b/images/macos/templates/macOS-12.anka.pkr.hcl index f5f48aa61..1b4adfe74 100644 --- a/images/macos/templates/macOS-12.anka.pkr.hcl +++ b/images/macos/templates/macOS-12.anka.pkr.hcl @@ -190,13 +190,10 @@ build { } provisioner "shell" { inline = [ - "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}" + "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}", + "echo ${var.xcversion_auth_cookie} | base64 --decode > ~/.fastlane/spaceship/${var.xcode_install_user}/cookie" ] } - provisioner "file" { - destination = "~/.fastlane/spaceship/${var.xcode_install_user}/cookie" - source = "${var.xcversion_auth_cookie}" - } provisioner "shell" { script = "./provision/core/xcode.ps1" environment_vars = [ diff --git a/images/macos/templates/macOS-13.anka.pkr.hcl b/images/macos/templates/macOS-13.anka.pkr.hcl index fc844f7cf..27e0a679d 100644 --- a/images/macos/templates/macOS-13.anka.pkr.hcl +++ b/images/macos/templates/macOS-13.anka.pkr.hcl @@ -184,13 +184,10 @@ build { } provisioner "shell" { inline = [ - "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}" + "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}", + "echo ${var.xcversion_auth_cookie} | base64 --decode > ~/.fastlane/spaceship/${var.xcode_install_user}/cookie" ] } - provisioner "file" { - destination = "~/.fastlane/spaceship/${var.xcode_install_user}/cookie" - source = "${var.xcversion_auth_cookie}" - } provisioner "shell" { script = "./provision/core/xcode.ps1" environment_vars = [ diff --git a/images/macos/templates/macOS-13.arm64.anka.pkr.hcl b/images/macos/templates/macOS-13.arm64.anka.pkr.hcl index 6df2c2147..558cd5601 100644 --- a/images/macos/templates/macOS-13.arm64.anka.pkr.hcl +++ b/images/macos/templates/macOS-13.arm64.anka.pkr.hcl @@ -184,13 +184,10 @@ build { } provisioner "shell" { inline = [ - "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}" + "mkdir -p ~/.fastlane/spaceship/${var.xcode_install_user}", + "echo ${var.xcversion_auth_cookie} | base64 --decode > ~/.fastlane/spaceship/${var.xcode_install_user}/cookie" ] } - provisioner "file" { - destination = "~/.fastlane/spaceship/${var.xcode_install_user}/cookie" - source = "${var.xcversion_auth_cookie}" - } provisioner "shell" { script = "./provision/core/xcode.ps1" environment_vars = [