diff --git a/scripts/package-portable.ps1 b/scripts/package-portable.ps1 index 236fbdb..1628369 100644 --- a/scripts/package-portable.ps1 +++ b/scripts/package-portable.ps1 @@ -33,6 +33,9 @@ if (-not (Test-Path $ffmpeg)) { $stage = "$root\dist-portable\stage-$Target" Remove-Item -Recurse -Force $stage -ErrorAction SilentlyContinue New-Item -ItemType Directory -Force "$stage\data" | Out-Null +# Compress-Archive는 빈 폴더(data\)를 zip에 넣지 않는다 → 포터블 감지용 마커 파일을 둔다. +# paths.rs가 exe 옆 portable.marker 또는 data\ 존재 시 포터블 모드로 동작. +Set-Content "$stage\portable.marker" "이 파일이 있으면 exe 옆 data\ 에 인덱스를 저장하는 포터블 모드로 실행됩니다." -Encoding utf8 Copy-Item $exe "$stage\Archive.exe" Copy-Item $ffmpeg "$stage\ffmpeg.exe"