From ea6f515e19a5d8c893d8bce9127b0599346067be Mon Sep 17 00:00:00 2001 From: Jerry Chae Date: Wed, 27 May 2026 10:55:42 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9C=88=EB=8F=84=EC=9A=B0=EC=9D=98=20?= =?UTF-8?q?=ED=95=9C=EA=B8=80=20=EC=95=88=EB=82=B4=EB=8A=94=20=EB=AA=A8?= =?UTF-8?q?=EB=91=90=20=EC=98=81=EB=AC=B8=EC=9C=BC=EB=A1=9C=20=EB=B3=80?= =?UTF-8?q?=ED=99=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install-agy.ps1 | 12 ++++++------ install-tmux.ps1 | 17 +++++++++-------- install-ttyd.ps1 | 28 ++++++++++++++-------------- 3 files changed, 29 insertions(+), 28 deletions(-) diff --git a/install-agy.ps1 b/install-agy.ps1 index ef1a7f0..b496c1b 100644 --- a/install-agy.ps1 +++ b/install-agy.ps1 @@ -43,8 +43,8 @@ $INSTALL_URL = "https://antigravity.google/cli/install.ps1" # ──────────────────────────────────────────── # 메인 설치 프로세스 # ──────────────────────────────────────────── -Write-Info "Google Antigravity 2.0 CLI (agy) 설치를 시작합니다..." -Write-Info "원격 설치 스크립트 가져오는 중: $INSTALL_URL" +Write-Info "Starting installation of Google Antigravity 2.0 CLI (agy)..." +Write-Info "Fetching remote installation script: $INSTALL_URL" try { # 원격 스크립트 다운로드 및 파이프(iex) 실행 @@ -52,10 +52,10 @@ try { Write-Host "" Write-Host "==================================================" -ForegroundColor Green - Write-Success "Antigravity CLI 설치가 완료되었습니다!" + Write-Success "Antigravity CLI installation completed successfully!" Write-Host "==================================================" -ForegroundColor Green - Write-Info "터미널 창을 다시 시작한 후 'agy' 명령어를 입력하여 실행하세요." - Write-Info "최초 가동 시 Google 계정 로그인 연동이 필요합니다." + Write-Info "Please restart your terminal and run 'agy' command to get started." + Write-Info "Google Account authentication is required on first launch." } catch { - Write-Err "Antigravity CLI 설치 스크립트 실행 중 에러가 발생했습니다: $_" + Write-Err "An error occurred while executing the Antigravity CLI installation script: $_" } diff --git a/install-tmux.ps1 b/install-tmux.ps1 index be3c7ac..4fd8e2f 100644 --- a/install-tmux.ps1 +++ b/install-tmux.ps1 @@ -50,33 +50,34 @@ $ConfFile = Join-Path $env:USERPROFILE '.tmux.conf' # ──────────────────────────────────────────── # Step 0: Ensure OpenSSH Server # ──────────────────────────────────────────── -Info "OpenSSH Server 설치 여부 확인 중..." +Info "Checking OpenSSH Server installation status..." $sshService = Get-Service -Name "sshd" -ErrorAction SilentlyContinue if (-not $sshService) { - Info "OpenSSH Server가 설치되어 있지 않습니다. 설치를 시도합니다..." + Info "OpenSSH Server is not installed. Attempting installation..." # OpenSSH Server 기능 추가 (관리자 권한 필요) try { $capability = Get-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" if ($capability.State -ne "Installed") { - Info "Windows 선택적 기능에서 OpenSSH Server를 설치하는 중..." + Info "Installing OpenSSH Server via Windows Optional Features..." Add-WindowsCapability -Online -Name "OpenSSH.Server~~~~0.0.1.0" > $null - Success "OpenSSH Server 기능이 성공적으로 추가되었습니다." + Success "OpenSSH Server feature added successfully." } # sshd 서비스 시작 및 자동 실행 설정 Set-Service -Name "sshd" -StartupType Automatic Start-Service -Name "sshd" - Success "OpenSSH Server(sshd) 서비스가 시작되었으며 자동 실행으로 설정되었습니다." + Success "OpenSSH Server (sshd) service started and configured as Automatic startup." } catch { - Warn "OpenSSH Server 자동 설치에 실패했습니다: $_" - Warn "이 기능은 '관리자 권한'이 필요할 수 있습니다." + Warn "Failed to auto-install OpenSSH Server: $_" + Warn "This operation may require Administrator privileges." } } else { - Success "OpenSSH Server가 이미 설치되어 있습니다." + Success "OpenSSH Server is already installed." } + # ──────────────────────────────────────────── # Step 1: Install tmux # ──────────────────────────────────────────── diff --git a/install-ttyd.ps1 b/install-ttyd.ps1 index dd2acf0..d286fb5 100644 --- a/install-ttyd.ps1 +++ b/install-ttyd.ps1 @@ -58,22 +58,22 @@ $API_URL = "https://api.github.com/repos/$REPO/releases/latest" # ──────────────────────────────────────────── # 1) GitHub 최신 릴리스 정보 획득 -Write-Info "GitHub API를 통해 ttyd 최신 릴리스 정보를 가져오는 중..." +Write-Info "Fetching latest ttyd release information from GitHub API..." try { $release = Invoke-RestMethod -Uri $API_URL -UseBasicParsing -Headers @{ 'User-Agent' = 'install-ttyd-ps1' } } catch { - Write-Err "GitHub API 호출에 실패했습니다: $_" + Write-Err "GitHub API call failed: $_" } $tagName = $release.tag_name -Write-Info "최신 ttyd 버전 확인 완료: $tagName" +Write-Info "Latest ttyd version confirmed: $tagName" # 2) ttyd.win32.exe 에셋 탐색 $assetName = "ttyd.win32.exe" $asset = $release.assets | Where-Object { $_.name -eq $assetName } | Select-Object -First 1 if (-not $asset) { - Write-Err "릴리스($tagName)에서 '$assetName' 바이너리를 찾을 수 없습니다." + Write-Err "Could not find '$assetName' binary in release $tagName." } $downloadUrl = $asset.browser_download_url @@ -81,7 +81,7 @@ $destExeName = "ttyd.exe" # 3) 다운로드 및 디렉토리 생성 if (-not (Test-Path $InstallDir)) { - Write-Info "설치 디렉토리 생성 중: $InstallDir" + Write-Info "Creating installation directory: $InstallDir" New-Item -ItemType Directory -Path $InstallDir -Force | Out-Null } @@ -91,12 +91,12 @@ New-Item -ItemType Directory -Path $tmpDir -Force | Out-Null $tmpFilePath = Join-Path $tmpDir $assetName try { - Write-Info "바이너리 다운로드 중: $downloadUrl" + Write-Info "Downloading binary: $downloadUrl" $ProgressPreference = 'SilentlyContinue' # 다운로드 진행 바 숨김으로 속도 향상 Invoke-WebRequest -Uri $downloadUrl -OutFile $tmpFilePath -UseBasicParsing $ProgressPreference = 'Continue' - Write-Info "설치 경로로 바이너리 배포 중: $destPath" + Write-Info "Deploying binary to install path: $destPath" Move-Item -Path $tmpFilePath -Destination $destPath -Force } finally { if (Test-Path $tmpDir) { @@ -108,16 +108,16 @@ try { if ($AddToPath) { if ($env:Path -notlike "*$InstallDir*") { $env:Path = "$InstallDir;$env:Path" - Write-Info "현재 세션 PATH에 $InstallDir 경로를 임시 추가했습니다." + Write-Info "Temporarily added $InstallDir to current session PATH." } $userPath = [System.Environment]::GetEnvironmentVariable('Path', 'User') if ($userPath -notlike "*$InstallDir*") { [System.Environment]::SetEnvironmentVariable('Path', "$InstallDir;$userPath", 'User') - Write-Success "사용자 PATH 환경 변수에 $InstallDir 경로를 영구 등록했습니다." - Write-Warn "변경된 PATH 설정을 반영하려면 열려 있는 터미널 창을 재시작해 주세요." + Write-Success "Permanently added $InstallDir to User PATH." + Write-Warn "Please restart your terminal window to apply the updated PATH environment variable." } else { - Write-Info "$InstallDir 경로는 이미 사용자 PATH에 등록되어 있습니다." + Write-Info "$InstallDir is already registered in User PATH." } } @@ -125,9 +125,9 @@ if ($AddToPath) { if (Test-Path $destPath) { Write-Host "" Write-Host "==================================================" -ForegroundColor Green - Write-Success "ttyd ($tagName) 설치가 완료되었습니다!" + Write-Success "ttyd ($tagName) installation completed successfully!" Write-Host "==================================================" -ForegroundColor Green - Write-Info "실행 명령어: ttyd --version" + Write-Info "Run command: ttyd --version" } else { - Write-Err "설치가 성공적으로 완료되지 않은 것으로 보입니다. 설치 파일 존재 여부를 확인해 주세요." + Write-Err "Installation seems to have failed. Please check if the binary exists at the destination path." }