From 7b9c99dcfa2be3125a334544e50d3608834a958b Mon Sep 17 00:00:00 2001 From: Philip Korsager Nickel Date: Thu, 5 Mar 2026 11:04:06 +0100 Subject: [PATCH] temporarily disable report generation --- MacOS/Components/Core/post_install.sh | 12 +++++++----- MacOS/releases/dtu-python-installer-macos.sh | 2 +- Windows/install.ps1 | 18 +++++++++--------- 3 files changed, 17 insertions(+), 15 deletions(-) diff --git a/MacOS/Components/Core/post_install.sh b/MacOS/Components/Core/post_install.sh index d0e71b81..a148e44f 100755 --- a/MacOS/Components/Core/post_install.sh +++ b/MacOS/Components/Core/post_install.sh @@ -25,11 +25,13 @@ echo "Refreshing shell environment for diagnostics..." source ~/.zshrc 2>/dev/null || source ~/.bash_profile 2>/dev/null || source ~/.bashrc 2>/dev/null || true # Run diagnostics and capture exit code -if /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/${REMOTE_PS}/${BRANCH_PS}/MacOS/Components/Diagnostics/simple_report.sh)"; then - exit_code=0 -else - exit_code=$? -fi +# Temporarily disabled HTML report generation +#if /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/${REMOTE_PS}/${BRANCH_PS}/MacOS/Components/Diagnostics/simple_report.sh)"; then +# exit_code=0 +#else +# exit_code=$? +#fi +exit_code=0 # Log script completion to Piwik if available #[ "$PIWIK_LOADED" = true ] && piwik_log 99 # Script Finished diff --git a/MacOS/releases/dtu-python-installer-macos.sh b/MacOS/releases/dtu-python-installer-macos.sh index 5da80818..cd1a7d4c 100644 --- a/MacOS/releases/dtu-python-installer-macos.sh +++ b/MacOS/releases/dtu-python-installer-macos.sh @@ -262,6 +262,6 @@ echo "DTU Python Support Installation Complete!" echo "========================================" echo "Installation log: $INSTALL_LOG" echo "Next steps:" -echo "• See the Installation HTML report for details" +# echo "• See the Installation HTML report for details" # Temporarily disabled echo "Need help? Visit: https://pythonsupport.dtu.dk" } 2>&1 | log_and_display diff --git a/Windows/install.ps1 b/Windows/install.ps1 index 2c79746a..5ef1541f 100644 --- a/Windows/install.ps1 +++ b/Windows/install.ps1 @@ -296,12 +296,12 @@ if ($successfulComponents -eq $totalComponents) { } Write-Host "Log file: $env:INSTALL_LOG" -ForegroundColor Gray -# Generate installation report silently as the very last step -Write-LogInfo "Generating installation report..." -try { - PowerShell -ExecutionPolicy Bypass -Command "& {Invoke-Expression (Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/dtudk/pythonsupport-scripts/main/Windows/Components/Diagnostics/generate_report.ps1' -UseBasicParsing).Content}" - Write-LogSuccess "Installation report generated successfully" -} catch { - Write-LogWarning "Could not generate installation report: $($_.Exception.Message)" - Write-Host "NOTE: Installation may still have been successful. Please verify manually." -ForegroundColor Yellow -} +# Temporarily disabled HTML report generation +#Write-LogInfo "Generating installation report..." +#try { +# PowerShell -ExecutionPolicy Bypass -Command "& {Invoke-Expression (Invoke-WebRequest -Uri 'https://raw.githubusercontent.com/dtudk/pythonsupport-scripts/main/Windows/Components/Diagnostics/generate_report.ps1' -UseBasicParsing).Content}" +# Write-LogSuccess "Installation report generated successfully" +#} catch { +# Write-LogWarning "Could not generate installation report: $($_.Exception.Message)" +# Write-Host "NOTE: Installation may still have been successful. Please verify manually." -ForegroundColor Yellow +#}