Skip to content

Commit

Permalink
refactor: cleanup version handling in setup.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed May 31, 2024
1 parent 2e8863b commit ec41a8c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ switch -wildcard ($platform)
# Parse CLI arguments.
# Defaults
$output = Join-Path $PSScriptRoot "webui"
$version = "latest"
# Default to `nightly` until WebUI 2.5.0 release. Earlier versions do not support odin-webui.
$version = "nightly"
for ($i = 0; $i -lt $args.Length; $i++)
{
switch -wildcard ($args[$i])
Expand Down Expand Up @@ -74,8 +75,6 @@ Remove-Item -Path $archive_dir -Recurse -Force -ErrorAction SilentlyContinue
Remove-Item -Path $output -Recurse -Force -ErrorAction SilentlyContinue

$release_base_url = "https://github.com/webui-dev/webui/releases"
# Default to `nightly` until WebUI 2.5.0 release. Earlier versions do not support odin-webui.
$version = "nightly"
if ($version -eq "nightly")
{
$url = "$release_base_url/download/$version/$archive"
Expand Down

0 comments on commit ec41a8c

Please sign in to comment.