forked from Stability-AI/StableSwarmUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlaunch-windows.bat
More file actions
23 lines (16 loc) · 832 Bytes
/
launch-windows.bat
File metadata and controls
23 lines (16 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
rem Ensure correct local path.
cd /D "%~dp0"
rem Microsoft borked the dotnet installer/path handler, so force x64 to be read first
set PATH=C:\Program Files\dotnet;%PATH%
rem For some reason Microsoft's nonsense is missing the official nuget source? So forcibly add that to be safe.
dotnet nuget add source https://api.nuget.org/v3/index.json --name "NuGet official package source"
rem Build the program if it isn't already built
if not exist src\bin\live_release\StableSwarmUI.dll (
dotnet build src/StableSwarmUI.csproj --configuration Release -o src/bin/live_release
)
rem Default env configuration, gets overwritten by the C# code's settings handler
set ASPNETCORE_ENVIRONMENT="Production"
set ASPNETCORE_URLS="http://*:7801"
dotnet src\bin\live_release\StableSwarmUI.dll %*
IF %ERRORLEVEL% NEQ 0 ( pause )