This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /usr/libexec/java_home -V | |
| sudo mkdir -p /Library/Java/JavaVirtualMachines | |
| sudo cp -R "$(brew --prefix openjdk@17)/libexec/openjdk.jdk" \ | |
| /Library/Java/JavaVirtualMachines/openjdk-17.jdk | |
| sudo xattr -r -d com.apple.quarantine /Library/Java/JavaVirtualMachines/openjdk-17.jdk | |
| export JAVA_HOME=$(/usr/libexec/java_home -v 17) | |
| export PATH="$JAVA_HOME/bin:$PATH" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # TeamCity macOS Agent Installer (self-logging) | |
| # - Installs prerequisites (CLT, Homebrew, JDK) | |
| # - Downloads agent ZIP from your server | |
| # - Configures and starts the agent | |
| # - Names agent: m4-mac-mini-<short-id> | |
| # - Installs in the current directory by default | |
| # | |
| # This version self-logs and traces to agent-install.log for easier debugging. |