Use progress bar for powershell and dxvk updates

This commit is contained in:
the-sane
2025-07-22 21:22:55 -04:00
parent 10c3a25325
commit ecb9980608

View File

@@ -2532,10 +2532,20 @@ install_powershell() {
# Install powershell # Install powershell
if [ "$?" -ne 1 ]; then if [ "$?" -ne 1 ]; then
# Show a zenity pulsating progress bar
progress_bar start "Installing PowerShell. Please wait..."
debug_print continue "Installing PowerShell into ${wine_prefix}..." debug_print continue "Installing PowerShell into ${wine_prefix}..."
WINEPREFIX="$wine_prefix" "$winetricks_bin" -q powershell WINEPREFIX="$wine_prefix" "$winetricks_bin" -q powershell
if [ "$?" -eq 1 ] || [ "$?" -eq 130 ]; then
progress_bar stop # Stop the zenity progress window
message warning "PowerShell could not be installed. See terminal output for details."
else
progress_bar stop # Stop the zenity progress window
message info "PowerShell operation complete. See terminal output for details." message info "PowerShell operation complete. See terminal output for details."
fi fi
fi
} }
# MARK: dxvk_update_wine() # MARK: dxvk_update_wine()
@@ -2555,10 +2565,20 @@ dxvk_update_wine() {
# Update dxvk # Update dxvk
if [ "$?" -ne 1 ]; then if [ "$?" -ne 1 ]; then
# Show a zenity pulsating progress bar
progress_bar start "Updating DXVK. Please wait..."
debug_print continue "Updating DXVK in ${wine_prefix}..." debug_print continue "Updating DXVK in ${wine_prefix}..."
WINEPREFIX="$wine_prefix" "$winetricks_bin" -f dxvk WINEPREFIX="$wine_prefix" "$winetricks_bin" -f dxvk
if [ "$?" -eq 1 ] || [ "$?" -eq 130 ]; then
progress_bar stop # Stop the zenity progress window
message warning "DXVK could not be installed. See terminal output for details."
else
progress_bar stop # Stop the zenity progress window
message info "DXVK update complete. See terminal output for details." message info "DXVK update complete. See terminal output for details."
fi fi
fi
} }
# MARK: format_urls() # MARK: format_urls()