포터블 zip에 portable.marker 추가 — Compress-Archive가 빈 data\ 폴더를 누락하는 문제 수정
Compress-Archive는 빈 디렉터리를 zip에 넣지 않아, 포터블 감지 신호였던 data\ 폴더가 배포 zip에서 사라졌다. 그 결과 압축 해제 후 실행하면 포터블 모드가 아닌 %APPDATA%에 데이터를 저장했다(x64/ARM64 공통). paths.rs가 인식하는 portable.marker 파일을 스테이지에 추가해 해결. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user