mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Fix download instructions for scoop
This commit is contained in:
@@ -57,6 +57,8 @@ switch ($options['os']) {
|
|||||||
case 'windows':
|
case 'windows':
|
||||||
if($options['osvariant'] === "{$options['os']}-docker") {
|
if($options['osvariant'] === "{$options['os']}-docker") {
|
||||||
$file = "{$options['osvariant']}-{$options['usage']}";
|
$file = "{$options['osvariant']}-{$options['usage']}";
|
||||||
|
} elseif($options['osvariant'] === "{$options['os']}-scoop") {
|
||||||
|
$file = "{$options['osvariant']}-" . ($options['version'] == $latestPhpVersion ? 'main' : 'versions');
|
||||||
} else {
|
} else {
|
||||||
$file = "{$options['osvariant']}";
|
$file = "{$options['osvariant']}";
|
||||||
}
|
}
|
||||||
|
|||||||
11
include/download-instructions/windows-scoop-main.php
Normal file
11
include/download-instructions/windows-scoop-main.php
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
<p>
|
||||||
|
On the command line, run the following commands:
|
||||||
|
</p>
|
||||||
|
<pre><code class="language-powershell line-numbers">
|
||||||
|
# Download and install Scoop.
|
||||||
|
powershell -c "irm https://get.scoop.sh | iex"
|
||||||
|
|
||||||
|
# Download and install PHP.
|
||||||
|
scoop bucket add main
|
||||||
|
scoop install main/php
|
||||||
|
</code></pre>
|
||||||
@@ -7,5 +7,5 @@ powershell -c "irm https://get.scoop.sh | iex"
|
|||||||
|
|
||||||
# Download and install PHP.
|
# Download and install PHP.
|
||||||
scoop bucket add versions
|
scoop bucket add versions
|
||||||
scoop install php<?= $versionNoDot; ?>
|
scoop install versions/php<?= $versionNoDot; ?>
|
||||||
</code></pre>
|
</code></pre>
|
||||||
Reference in New Issue
Block a user