Repository navigation
feat: zip 판을 실행 파일 하나로 켜지는 포터블로 바꾼다 (#58) - #59
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#58 을 닫는다. GitHub 에서 받는 zip 판을 실행 파일 하나로 켜지는 포터블로 바꾼다. 설치 버전은 Microsoft Store 판이고 바뀌지 않는다.
왜
지금 zip 은
SoundVisualizer.exe옆에 DLL 7개와AIModel폴더가 있어야 켜진다. zip 안에서 바로 열거나 exe 만 복사해 열면 첫 창을 만들 때DllNotFoundException으로 안내 없이 꺼진다(PC방에서 "가끔 아예 안 켜짐"). 빈 폴더에 2.3.2 exe 만 두고 재현했다(이벤트 로그 .NET Runtime 1026).바뀐 것
-p:Portable=true로 게시하면 그래픽·AI 엔진 DLL 을 실행 파일에 넣고(IncludeNativeLibrariesForSelfExtract, 켤 때 .NET 이%TEMP%\.net\SoundVisualizer에 7개 약 22MB 를 푼다) AI 모델 4개를 리소스로 넣는다.AppContext.BaseDirectory는 그대로 exe 폴더라 설정 파일·업데이트·Chocolatey 판별은 손대지 않았다.IncludeAllContentForSelfExtract도 시험했는데 477개 216MB 를 풀어 쓰지 않았다.BundledModels(Core): 실행 파일 안에 모델이 있으면%TEMP%\SoundVisualizer\AIModel-(모델 해시)에 꺼내 쓴다. 임시 이름에 쓰고 크기·SHA-256 이 맞을 때만 제 이름으로 바꾼다. 이미 맞는 파일이 있으면 다시 쓰지 않는다. 소리 목록(csv)은 실행 파일에서 바로 읽는다. 모델이 없으면(MSIX, 개발 빌드) 지금처럼 exe 옆AIModel을 쓴다.LegacyPackageFiles(Core): 앱 안의 업데이트로 옛 zip 판에서 넘어와 막 켜졌을 때만, 옛 판이 남긴 DLL 7개와 모델 4개를 정해진 이름으로만 지운다(아무 폴더에서나 지우지 않게).packaging/portable/build-portable.ps1: 포터블 zip 을 만든다. zip 에는SoundVisualizer.exe와 LICENSE, THIRD_PARTY.md, Fonts/Pretendard-LICENSE.txt 만 넣는다. 자산 이름(SoundVisualizer_v버전.zip)은 그대로라 2.3.2 의 앱 안 업데이트가 받는다. 실행 파일 옆에 DLL 이나 모델 폴더가 나오면 멈춘다.build-msix.ps1)는 그대로다(파일을 나눠 둔다).시험
이것으로 풀리지 않는 것
PC방 관리 프로그램의 실행 차단, SmartScreen 경고, 백신 차단(코드 서명이 필요하다).