removing golang/temporal building

This commit is contained in:
Michael Neale
2025-10-29 12:20:08 +11:00
committed by GitHub
parent b94535b679
commit f0056e6cd1
32 changed files with 34 additions and 4999 deletions
+4 -36
View File
@@ -143,39 +143,7 @@ if (Test-Path $SOURCE_GOOSE) {
exit 1
}
# --- 10) Install temporal-service if it exists ---
$SOURCE_TEMPORAL_SERVICE = Join-Path $EXTRACT_DIR "temporal-service.exe"
if (Test-Path $SOURCE_TEMPORAL_SERVICE) {
$DEST_TEMPORAL_SERVICE = Join-Path $env:GOOSE_BIN_DIR "temporal-service.exe"
Write-Host "Moving temporal-service to $DEST_TEMPORAL_SERVICE" -ForegroundColor Green
try {
# Remove existing file if it exists to avoid conflicts
if (Test-Path $DEST_TEMPORAL_SERVICE) {
Remove-Item -Path $DEST_TEMPORAL_SERVICE -Force
}
Move-Item -Path $SOURCE_TEMPORAL_SERVICE -Destination $DEST_TEMPORAL_SERVICE -Force
} catch {
Write-Warning "Failed to move temporal-service.exe: $($_.Exception.Message)"
}
}
# --- 11) Install temporal CLI if it exists ---
$SOURCE_TEMPORAL = Join-Path $EXTRACT_DIR "temporal.exe"
if (Test-Path $SOURCE_TEMPORAL) {
$DEST_TEMPORAL = Join-Path $env:GOOSE_BIN_DIR "temporal.exe"
Write-Host "Moving temporal CLI to $DEST_TEMPORAL" -ForegroundColor Green
try {
# Remove existing file if it exists to avoid conflicts
if (Test-Path $DEST_TEMPORAL) {
Remove-Item -Path $DEST_TEMPORAL -Force
}
Move-Item -Path $SOURCE_TEMPORAL -Destination $DEST_TEMPORAL -Force
} catch {
Write-Warning "Failed to move temporal.exe: $($_.Exception.Message)"
}
}
# --- 12) Copy Windows runtime DLLs if they exist ---
# --- 10) Copy Windows runtime DLLs if they exist ---
$DLL_FILES = Get-ChildItem -Path $EXTRACT_DIR -Filter "*.dll" -ErrorAction SilentlyContinue
foreach ($dll in $DLL_FILES) {
$DEST_DLL = Join-Path $env:GOOSE_BIN_DIR $dll.Name
@@ -191,7 +159,7 @@ foreach ($dll in $DLL_FILES) {
}
}
# --- 13) Clean up temporary directory ---
# --- 11) Clean up temporary directory ---
try {
Remove-Item -Path $TMP_DIR -Recurse -Force
Write-Host "Cleaned up temporary directory." -ForegroundColor Yellow
@@ -199,7 +167,7 @@ try {
Write-Warning "Could not clean up temporary directory: $TMP_DIR"
}
# --- 14) Configure goose (Optional) ---
# --- 12) Configure goose (Optional) ---
if ($CONFIGURE -eq "true") {
Write-Host ""
Write-Host "Configuring goose" -ForegroundColor Green
@@ -213,7 +181,7 @@ if ($CONFIGURE -eq "true") {
Write-Host "Skipping 'goose configure', you may need to run this manually later" -ForegroundColor Yellow
}
# --- 15) Check PATH and give instructions if needed ---
# --- 13) Check PATH and give instructions if needed ---
$CURRENT_PATH = $env:PATH
if ($CURRENT_PATH -notlike "*$env:GOOSE_BIN_DIR*") {
Write-Host ""