Files
wehub-resource-sync d68f003000
CI / Change detection (push) Has been cancelled
CI / Version drift (push) Has been cancelled
CI / Lint (push) Has been cancelled
CI / Workflow RLM cache (push) Has been cancelled
CI / Test (macos-latest) (push) Has been cancelled
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / npm wrapper smoke (push) Has been cancelled
CI / Mobile runtime smoke (push) Has been cancelled
CI / Workflow lint (push) Has been cancelled
CI / Documentation (push) Has been cancelled
Web Frontend / Lint & Type Check (push) Failing after 1s
Auto-close harvested PRs / close (push) Failing after 1s
cargo-deny / cargo-deny (bans licenses sources) (push) Failing after 1s
Security audit / cargo-audit (push) Failing after 1s
Sync to CNB / sync (push) Failing after 1s
cargo-deny / cargo-deny (advisories) (push) Failing after 3s
Web Frontend / Deploy to Cloudflare (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 12:08:23 +08:00

45 lines
1.3 KiB
Batchfile

@echo off
setlocal enabledelayedexpansion
:: CodeWhale Windows installer
:: Copies codewhale.exe, codew.exe, and codewhale-tui.exe to %USERPROFILE%\bin
set "BIN_DIR=%USERPROFILE%\bin"
set "SCRIPT_DIR=%~dp0"
if not exist "%BIN_DIR%" mkdir "%BIN_DIR%"
echo Installing codewhale to %BIN_DIR%...
copy /Y "%SCRIPT_DIR%codewhale.exe" "%BIN_DIR%\codewhale.exe" >nul
if %ERRORLEVEL% neq 0 (
echo ERROR: Failed to copy codewhale.exe
exit /b 1
)
copy /Y "%SCRIPT_DIR%codew.exe" "%BIN_DIR%\codew.exe" >nul
if %ERRORLEVEL% neq 0 (
echo ERROR: Failed to copy codew.exe
exit /b 1
)
copy /Y "%SCRIPT_DIR%codewhale-tui.exe" "%BIN_DIR%\codewhale-tui.exe" >nul
if %ERRORLEVEL% neq 0 (
echo ERROR: Failed to copy codewhale-tui.exe
exit /b 1
)
echo.
echo Done. Commands installed to %BIN_DIR%.
echo.
echo Add %BIN_DIR% to your PATH:
echo 1. Open Start, search "environment variables"
echo 2. Click "Environment Variables..."
echo 3. Under "User variables", select "Path" and click "Edit"
echo 4. Click "New" and add: %BIN_DIR%
echo 5. Click OK, then restart your terminal
echo.
echo Or run this in an admin PowerShell:
echo [Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path', 'User') + ';%BIN_DIR%', 'User')
echo.
echo Then run: codewhale