This repository has been archived on 2026-10-29. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
EveFlutter/scripts/install-nightwing-flutter-sdk.ps1
2026-07-10 09:57:05 +01:00

17 lines
680 B
PowerShell

param(
[string] $SshTarget = "nightwing"
)
$ErrorActionPreference = "Stop"
$projectRoot = Split-Path -Parent $PSScriptRoot
$localScript = Join-Path $projectRoot "scripts\install-nightwing-flutter-sdk.sh"
$remoteScript = "~/.local/bin/install-eve-flutter-sdk.sh"
$stateDir = "~/.local/state/gamecult"
$pidPath = "$stateDir/eve-linux-flutter-install.pid"
$logPath = "$stateDir/eve-linux-flutter-install.log"
ssh $SshTarget "mkdir -p ~/.local/bin ~/.local/state/gamecult"
scp $localScript "${SshTarget}:$remoteScript" | Out-Host
ssh $SshTarget "chmod +x $remoteScript"
ssh $SshTarget "nohup $remoteScript >/dev/null 2>&1 & echo `$! > $pidPath && echo $pidPath && echo $logPath"