Skip to content

Commit e625925

Browse files
committed
oh and handle path correctly
1 parent ae05fd4 commit e625925

4 files changed

Lines changed: 16 additions & 12 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Note: if you're on Windows 10, you may need to manually install [git](https://gi
8383
- Install `git` and `python3` via your OS package manager if they are not already installed (make sure to include `pip` and `venv` on distros that do not include them in python directly)
8484
- For example, on some Ubuntu (desktop) versions, `sudo apt install git python3-pip python3-venv`, or you may need <https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa>
8585
- For Debian or Ubuntu Server, `sudo apt install git python3-full`
86-
- You'll want Python 3.11 or 3.12. Things should also work fine with 3.10. Do not use 3.13.
86+
- You'll want Python 3.11 or 3.12. Things should also work fine with 3.10. Do not use 3.13 or later.
8787
- Make sure `python3.11 -m pip --version` returns a valid package
8888

8989
### Linux Easy Install
@@ -97,13 +97,14 @@ Note: if you're on Windows 10, you may need to manually install [git](https://gi
9797

9898
### Linux Manual Install
9999

100-
- Current version targets .NET 8, but a future version will target .NET 10, so install both:
101-
- Install DotNET 8 using the instructions at https://dotnet.microsoft.com/en-us/download/dotnet/8.0 (you need `dotnet-sdk-8.0`, as that includes all relevant sub-packages)
102-
- Install DotNET 8 using the instructions at https://dotnet.microsoft.com/en-us/download/dotnet/10.0 (you need `dotnet-sdk-10.0`, as that includes all relevant sub-packages)
103-
- Open a shell terminal and `cd` to a directory you want to install into
104100
- Run shell commands:
105101
- `git clone https://github.com/mcmonkeyprojects/SwarmUI`
106102
- cd `SwarmUI`
103+
- Current version targets .NET 8, but a future version will target .NET 10, so install both:
104+
- You can run shell command `./launchtools/linux-dotnet-install.sh`, or separately follow the instructions at:
105+
- <https://dotnet.microsoft.com/en-us/download/dotnet/8.0> and also <https://dotnet.microsoft.com/en-us/download/dotnet/10.0> (you need `dotnet-sdk-8.0`/`dotnet-sdk-10.0`, as that includes all relevant sub-packages)
106+
- Open a shell terminal and `cd` to a directory you want to install into
107+
- To launch, in the shell run:
107108
- `./launch-linux.sh`
108109
- or if running on a headless server, `./launch-linux.sh --launch_mode none --host 0.0.0.0` and/or swap host for [cloudflared](/docs/Advanced%20Usage.md)
109110
- open `http://localhost:7801/Install` (if it doesn't launch itself)

launchtools/install-linux.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ git clone https://github.com/mcmonkeyprojects/SwarmUI
1919
cd SwarmUI
2020

2121
# install dotnet
22-
./launchtools/linux-dotnet-install.sh
22+
# Note: manual installers that want to avoid home dir, you can change the path below to "$PWD/.dotnet"
23+
./launchtools/linux-dotnet-install.sh "$HOME/.dotnet"
2324

2425
# Launch
2526
./launch-linux.sh "$@"

launchtools/linux-build-logic.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ if [ "$DOTNET_ROOT" = "$SCRIPT_DIR/.dotnet" ] || [ "$DOTNET_ROOT" = "$HOME/.dotn
77
if ! dotnet --list-sdks 2>/dev/null | grep -q "^10\.0"; then
88
echo "Installing dotnet 10 to user-local dir, if you don't want this you have 15 seconds to CTRL+C this terminal, then go manually install dotnet 10"
99
sleep 15
10-
./launchtools/linux-dotnet-install.sh
10+
./launchtools/linux-dotnet-install.sh "$DOTNET_ROOT"
1111
fi
1212
fi
1313

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#!/usr/bin/env bash
22

3+
# First arg is the target install dir, only "$HOME/.dotnet" and "$PWD/.dotnet" are fully supported by Swarm autodetect for launching
4+
INSTALL_DIR="${1:-$HOME/.dotnet}"
5+
36
# install dotnet
47
cd launchtools
58
rm dotnet-install.sh
@@ -8,10 +11,9 @@ wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh
811
chmod +x dotnet-install.sh
912
cd ..
1013

11-
# Note: manual installers that want to avoid home dir, add to both of the below lines: --install-dir "$PWD/.dotnet"
12-
./launchtools/dotnet-install.sh --channel 10.0 --runtime aspnetcore
13-
./launchtools/dotnet-install.sh --channel 10.0
14-
./launchtools/dotnet-install.sh --channel 8.0 --runtime aspnetcore
15-
./launchtools/dotnet-install.sh --channel 8.0
14+
./launchtools/dotnet-install.sh --channel 10.0 --runtime aspnetcore --install-dir "$INSTALL_DIR"
15+
./launchtools/dotnet-install.sh --channel 10.0 --install-dir "$INSTALL_DIR"
16+
./launchtools/dotnet-install.sh --channel 8.0 --runtime aspnetcore --install-dir "$INSTALL_DIR"
17+
./launchtools/dotnet-install.sh --channel 8.0 --install-dir "$INSTALL_DIR"
1618

1719
rm ./launchtools/dotnet-install.sh

0 commit comments

Comments
 (0)