diff --git a/install/local/install-scrypted-dependencies-linux.sh b/install/local/install-scrypted-dependencies-linux.sh index f8f06fdb5..68a801ad0 100755 --- a/install/local/install-scrypted-dependencies-linux.sh +++ b/install/local/install-scrypted-dependencies-linux.sh @@ -97,7 +97,7 @@ echo "docker compose rm -rf" sudo -u $SERVICE_USER docker rm -f /scrypted /scrypted-watchtower 2> /dev/null echo "Installing Scrypted..." -RUN sudo -u $SERVICE_USER npx -y scrypted@latest install-server +RUN sudo -u $SERVICE_USER npx -y scrypted@latest install-server $SCRYPTED_INSTALL_VERSION cat > /etc/systemd/system/scrypted.service < ~/Library/LaunchAgents/app.scrypted.server.plist < diff --git a/install/local/install-scrypted-dependencies-win.ps1 b/install/local/install-scrypted-dependencies-win.ps1 index 13266083d..cc31b86b5 100644 --- a/install/local/install-scrypted-dependencies-win.ps1 +++ b/install/local/install-scrypted-dependencies-win.ps1 @@ -26,7 +26,12 @@ $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" py $SCRYPTED_WINDOWS_PYTHON_VERSION -m pip install --upgrade pip py $SCRYPTED_WINDOWS_PYTHON_VERSION -m pip install debugpy typing_extensions typing opencv-python -npx -y scrypted@latest install-server +$SCRYPTED_INSTALL_VERSION=[System.Environment]::GetEnvironmentVariable("SCRYPTED_INSTALL_VERSION","User") +if ($SCRYPTED_INSTALL_VERSION -eq $null) { + npx -y scrypted@latest install-server +} else { + npx -y scrypted@latest install-server $SCRYPTED_INSTALL_VERSION +} $USER_HOME_ESCAPED = $env:USERPROFILE.replace('\', '\\') $SCRYPTED_HOME = $env:USERPROFILE + '\.scrypted'