From 49d46f2ce057cc1a201be6683af8d9a279a2490e Mon Sep 17 00:00:00 2001 From: Dmitry Nefedov Date: Sat, 9 Dec 2023 13:45:20 +0300 Subject: [PATCH] Updated short URL --- Download_Sophia.ps1 | 9 ++++++++- README.md | 2 +- README_de-de.md | 2 +- README_uk-ua.md | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/Download_Sophia.ps1 b/Download_Sophia.ps1 index 372a5388..9b43c5d8 100644 --- a/Download_Sophia.ps1 +++ b/Download_Sophia.ps1 @@ -7,7 +7,7 @@ E.g., if you start script on Windows 11 via PowerShell 5.1 you will start downloading Sophia Script for Windows 11 PowerShell 5.1 .EXAMPLE Download and expand Sophia Script archive - irm script.sophi.app -useb | iex + iwr script.sophia.team -useb | iex .EXAMPLE Download and expand Wrapper archive iex "& {$(irm script.sophi.app -useb)} -Wrapper" @@ -25,6 +25,13 @@ param [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 +if ($Host.Version.Major -eq 5) +{ + # Progress bar can significantly impact cmdlet performance + # https://github.com/PowerShell/PowerShell/issues/2138 + $Script:ProgressPreference = "SilentlyContinue" +} + $Parameters = @{ Uri = "https://api.github.com/repos/farag2/Sophia-Script-for-Windows/releases/latest" UseBasicParsing = $true diff --git a/README.md b/README.md index 44950f0c..563a6888 100644 --- a/README.md +++ b/README.md @@ -284,7 +284,7 @@ Or use an old-style format without the TAB functions autocomplete (the quotation * Download the always latest Sophia Script archive by invoking (`not as administrator too`) in PowerShell ```powershell -irm script.sophi.app -useb | iex +iwr script.sophia.team -useb | iex ``` * The command will download and expand the latest Sophia Script archive (`without running`) according which Windows and PowerShell versions it is run on. If you run it on, e.g., Windows 11 via PowerShell 5.1, it will download Sophia Script for `Windows 11 PowerShell 5.1`. diff --git a/README_de-de.md b/README_de-de.md index dd2dc94a..ee77f614 100644 --- a/README_de-de.md +++ b/README_de-de.md @@ -284,7 +284,7 @@ Oder verwenden Sie ein Format im alten Stil ohne die TAB-Funktionen zum automati * Laden Sie das stets aktuelle Sophia-Script-Archiv herunter, indem Sie die PowerShell aufrufen (`auch als nicht-Administrator`) ```powershell -irm script.sophi.app -useb | iex +iwr script.sophia.team -useb | iex ``` * Der Befehl lädt das neueste Sophia Script-Archiv herunter und extrahiert es (`ohne Ausführung`) entsprechend der Windows- und PowerShell-Version, unter der er ausgeführt wird. Wenn Sie es z. B. unter Windows 11 über PowerShell 5.1 ausführen, wird Sophia Script für `Windows 11 PowerShell 5.1` heruntergeladen. diff --git a/README_uk-ua.md b/README_uk-ua.md index 60b15f0e..4323cf51 100644 --- a/README_uk-ua.md +++ b/README_uk-ua.md @@ -282,7 +282,7 @@ UninstallUWPApps, "PinToStart -UnpinAll" * Завантажте актуальний архів Sophia Script, викликавши (`також не від імені адміністратора`) в PowerShell ```powershell -irm script.sophi.app -useb | iex +iwr script.sophia.team -useb | iex ``` * Команда завантажить і розпакує останній архів Sophia Script (`без запуску`) відповідно до того, під якою версією Windows і PowerShell він запускається. Якщо запустити її, наприклад, в Windows 11 через PowerShell 5.1, вона завантажить Sophia Script для `Windows 11 PowerShell 5.1`.