refactor(scripts): tira o PowerShell da lista de comandos
A abertura da janela no Windows fica em scripts/lib, chamada só por pitiupi.sh e pitiupi.cmd. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
e84aba2f4e
commit
9610c07675
3 files changed
+4
-3
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ set "PITIUPI_PLUGINS=%CD%\.pitiupi\plugins"
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$repo = $env:PITIUPI_REPO; $dest = $env:PITIUPI_PLUGINS; $reg = Get-Content -Raw (Join-Path $repo 'plugins.registry.json') | ConvertFrom-Json; foreach ($p in $reg.plugins) { $dir = Join-Path $repo ($p.dir -replace '/','\'); if ($p.build -ne 'ant') { Write-Error ('build nao suportado neste prompt: ' + $p.build); exit 1 }; & ant -f (Join-Path $dir 'build.xml') jar; if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }; $src = Join-Path $dir ($p.jar -replace '/','\'); if (-not (Test-Path -LiteralPath $src)) { Write-Error ('JAR ausente: ' + $src); exit 1 }; Copy-Item -LiteralPath $src -Destination (Join-Path $dest ($p.id + '.jar')) -Force }"
|
||||
if errorlevel 1 exit /b 1
|
||||
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0run-windows.ps1" -PitiupiHome "%CD%\.pitiupi" -Jar "%CD%\pitiupi\dist\pitiupi.jar"
|
||||
powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0lib\launch-windows.ps1" -PitiupiHome "%CD%\.pitiupi" -Jar "%CD%\pitiupi\dist\pitiupi.jar"
|
||||
if errorlevel 1 exit /b 1
|
||||
echo Janela aberta no Windows. Cabo e Wi-Fi sao as placas desta maquina.
|
||||
echo Plugins em %CD%\.pitiupi\plugins
|
||||
|
||||
Reference in new issue
Block a user