From a734ba21b920a4555b26419cd7b9cdac1c20d604 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B0=95=20=ED=95=9C?= Date: Sun, 19 Jul 2026 16:33:46 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8F=AC=ED=84=B0=EB=B8=94=20zip=EC=97=90=20po?= =?UTF-8?q?rtable.marker=20=EC=B6=94=EA=B0=80=20=E2=80=94=20Compress-Archi?= =?UTF-8?q?ve=EA=B0=80=20=EB=B9=88=20data\=20=ED=8F=B4=EB=8D=94=EB=A5=BC?= =?UTF-8?q?=20=EB=88=84=EB=9D=BD=ED=95=98=EB=8A=94=20=EB=AC=B8=EC=A0=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Compress-Archive는 빈 디렉터리를 zip에 넣지 않아, 포터블 감지 신호였던 data\ 폴더가 배포 zip에서 사라졌다. 그 결과 압축 해제 후 실행하면 포터블 모드가 아닌 %APPDATA%에 데이터를 저장했다(x64/ARM64 공통). paths.rs가 인식하는 portable.marker 파일을 스테이지에 추가해 해결. Co-Authored-By: Claude Fable 5 --- scripts/package-portable.ps1 | 3 +++ 1 file changed, 3 insertions(+) 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"