Spaces:
Configuration error
Configuration error
Download update-linuxmac.sh from roshikhan3021/Stability: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/roshikhan3021/Stability/resolve/main/update-linuxmac.sh
- Command line
-
hf download hf://spaces/roshikhan3021/Stability/update-linuxmac.sh
-
curl -L -o update-linuxmac.sh https://huggingface.co/spaces/roshikhan3021/Stability/resolve/main/update-linuxmac.sh
578 Bytes
| # Ensure correct local path. | |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | |
| cd $SCRIPT_DIR | |
| # Add dotnet non-admin-install to path | |
| export PATH="$SCRIPT_DIR/.dotnet:~/.dotnet:$PATH" | |
| # The actual update | |
| git pull | |
| # Make a backup of the current live_release to be safe | |
| if [ -d ./src/bin/live_release ]; then | |
| rm -rf ./src/bin/live_release_backup | |
| mv ./src/bin/live_release ./src/bin/live_release_backup | |
| fi | |
| # Now build the new copy | |
| dotnet build src/StableSwarmUI.csproj --configuration Release -o ./src/bin/live_release | |