oni.git

oni

~ A static Git browser written in Rust.
git clone https://github.com/debuman/oni.git

build.ps1 (416B)

      1 param([switch]$Offline)
      2 
      3 $ErrorActionPreference = 'Stop'
      4 $linuxRoot = (& wsl -d Ubuntu --exec wslpath -a $PSScriptRoot).Trim()
      5 if ($LASTEXITCODE -ne 0) { throw 'Could not resolve the WSL project path.' }
      6 $buildArgs = @('-d', 'Ubuntu', '--exec', 'python3', "$linuxRoot/scripts/build.py")
      7 if ($Offline) { $buildArgs += '--offline' }
      8 & wsl @buildArgs
      9 if ($LASTEXITCODE -ne 0) { throw 'The local stagit build failed.' }