chore: bundle evbunpack tool and add EVB control/launch fixes

- Add Enigma Virtual Box (EVB) engine support: detection, badge, unpack/restore UI
- Bundle evbunpack.exe under Engines/Evb/Tools/evbunpack (Apache-2.0, with LICENSE/README)
- Copy Engines\\**\\Tools\\** to build output via csproj (publish already covered by publish.ps1)
- Throttle evbunpack progress reporting and shorten timeout to stop UI freeze
- Rename original packed exe to .glbak and write a completion marker; make Restore reverse it
- Launch the unpacked exe from _evb_extracted so script mods apply
- Replace EVB MessageBox dialogs with readable log summaries
- Remove obsolete boxed/7zip extraction code (NwjsPackageUnpacker, TkoolPackagedExtractionService)
This commit is contained in:
armonica committed 2026-10-07 09:30:09 +09:00
1 parent 8cea2a147d
commit 05e7bdb3c0
23 files changed
+1542 -1288

No files matched your search

+6 -18
View File
@@ -43,24 +43,12 @@ if ($LASTEXITCODE -eq 0) {
}
}
# nw.js boxed 用の外部アンパッカーを事前配置(未配置なら実行時にも自動取得を試行)
# 7zr.exe は依存DLL不要の単体実行版。取得失敗時はスキップし、実行時に NwjsUnpackerToolProvider が再取得を試みる。
$nwjsToolsDir = Join-Path (Join-Path $publishDir "Engines") "Nwjs\Tools"
$unpackerPresent = $false
foreach ($cand in @("$nwjsToolsDir\7zr.exe", "$nwjsToolsDir\7z.exe")) {
if (Test-Path $cand) { $unpackerPresent = $true; break }
}
if (!$unpackerPresent) {
if (!(Test-Path $nwjsToolsDir)) {
New-Item -ItemType Directory -Path $nwjsToolsDir -Force | Out-Null
}
try {
Write-Host "nw.js boxed 用アンパッカー(7zr.exe)を取得中..." -ForegroundColor Yellow
Invoke-WebRequest -Uri "https://www.7-zip.org/a/7zr.exe" -OutFile "$nwjsToolsDir\7zr.exe" -UseBasicParsing -TimeoutSec 120
Write-Host "アンパッカーを配置しました: $nwjsToolsDir\7zr.exe" -ForegroundColor Green
} catch {
Write-Host "アンパッカーの取得に失敗しました(実行時に再取得を試行します): $($_.Exception.Message)" -ForegroundColor Yellow
}
# Enigma Virtual Box (EVB) 用の解凍ツール(evbunpack.exe)はリポジトリ同梱(自動取得は行わない)。
# 未配置の場合は警告のみ出し、Evb エンジンは解凍をスキップして起動対応に留める。
$evbToolDir = Join-Path (Join-Path $publishDir "Engines") "Evb\Tools\evbunpack"
if (!(Test-Path "$evbToolDir\evbunpack.exe")) {
Write-Host "警告: EVB 解凍ツールが見つかりません: $evbToolDir\evbunpack.exe" -ForegroundColor Yellow
Write-Host " Engines\Evb\Tools\evbunpack\README.md の手順で evbunpack.exe を配置してください。" -ForegroundColor Yellow
}
Write-Host "発行成功: $publishDir\GameLauncher.exe" -ForegroundColor Green
} else {