Skip to content

Commit babe7d6

Browse files
committed
feat: Allow specifying a specific version in install script
1 parent 1a06faf commit babe7d6

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

website/public/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Write-Host -ForegroundColor Red " `$`$/
2222
Write-Host ""
2323

2424
$package = "superfile"
25-
$version = "1.3.0"
25+
$version = if ($env:SPF_INSTALL_VERSION) { $env:SPF_INSTALL_VERSION } else { "1.3.0" }
2626

2727
$installInstructions = @'
2828
This installer is only available for Windows.

website/public/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if [ $? -ne 0 ]; then
3939
fi
4040

4141
package=superfile
42-
version=1.3.0
42+
version=${SPF_INSTALL_VERSION:-1.3.0}
4343
arch=$(uname -m)
4444
os=$(uname -s)
4545

website/public/uninstall.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ Write-Host -ForegroundColor Red " `$`$/
2222
Write-Host ""
2323

2424
$package = "superfile"
25-
$version = "1.3.0"
2625

2726
$installInstructions = @'
2827
This uninstaller is only available for Windows.

0 commit comments

Comments
 (0)