From e42fbdc9ee0b761c2990e2660bfc8a490f699c65 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 7 Feb 2026 06:26:08 +0530 Subject: [PATCH] Fix download instructions for scoop --- downloads-get-instructions.php | 2 ++ include/download-instructions/windows-scoop-main.php | 11 +++++++++++ .../{windows-scoop.php => windows-scoop-versions.php} | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 include/download-instructions/windows-scoop-main.php rename include/download-instructions/{windows-scoop.php => windows-scoop-versions.php} (84%) diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php index 0af513815..6a9f19e67 100644 --- a/downloads-get-instructions.php +++ b/downloads-get-instructions.php @@ -57,6 +57,8 @@ switch ($options['os']) { case 'windows': if($options['osvariant'] === "{$options['os']}-docker") { $file = "{$options['osvariant']}-{$options['usage']}"; + } elseif($options['osvariant'] === "{$options['os']}-scoop") { + $file = "{$options['osvariant']}-" . ($options['version'] == $latestPhpVersion ? 'main' : 'versions'); } else { $file = "{$options['osvariant']}"; } diff --git a/include/download-instructions/windows-scoop-main.php b/include/download-instructions/windows-scoop-main.php new file mode 100644 index 000000000..231cfcf8d --- /dev/null +++ b/include/download-instructions/windows-scoop-main.php @@ -0,0 +1,11 @@ +

+On the command line, run the following commands: +

+

+# Download and install Scoop.
+powershell -c "irm https://get.scoop.sh | iex"
+
+# Download and install PHP.
+scoop bucket add main
+scoop install main/php
+
diff --git a/include/download-instructions/windows-scoop.php b/include/download-instructions/windows-scoop-versions.php similarity index 84% rename from include/download-instructions/windows-scoop.php rename to include/download-instructions/windows-scoop-versions.php index b95b7d199..c2a1d61ff 100644 --- a/include/download-instructions/windows-scoop.php +++ b/include/download-instructions/windows-scoop-versions.php @@ -7,5 +7,5 @@ powershell -c "irm https://get.scoop.sh | iex" # Download and install PHP. scoop bucket add versions -scoop install php +scoop install versions/php