Initialize generic Eve Flutter runtime
This commit is contained in:
commit
5998044f2b
108 changed files with 5784 additions and 0 deletions
17
scripts/install-nightwing-flutter-sdk.ps1
Normal file
17
scripts/install-nightwing-flutter-sdk.ps1
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
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"
|
||||
Reference in a new issue