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
| # Flexible WSL2 SSH Setup Script with Distribution Detection | |
| # Ensure running as Administrator | |
| if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { | |
| Write-Warning "Please run this script as Administrator!" | |
| Exit | |
| } | |
| # Function to get the default WSL distribution | |
| function Get-DefaultWSLDistribution { |
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
| MY_USERNAME="username" | |
| CONFIGURATION_NAME="Ad Hoc" # Distribution, Ad Hoc... | |
| PROJDIR="/path-to-your-xcode-project" | |
| APPLICATION_NAME="myapplication" | |
| PROJECT_NAME="${APPLICATION_NAME}" # .xcodeproj ommitted | |
| TARGET_SDK="iphoneos4.2" # current sdk | |
| PROJECT_BUILDDIR="/Users/${MY_USERNAME}/path-to-build-dir/${CONFIGURATION_NAME}-iphoneos" | |
| TARGET_TEST_NAME="${APPLICATION_NAME}" | |
| BUILD_HISTORY_DIR="${PROJDIR}/distribution/" # write ${APPLICATION_NAME}.IPA here | |
| DEVELOPER_NAME="Your Name (Bundle Prefix If Applicable)" # mine was company name |