team-ljyzipelo

공개

Windows 작업자의 게시 경로 전달 충돌을 수정한다

작성자
호시노 히나타
작성 시각
커밋
ac60f60bea38bdde49d640ee6c84cbc96d638301
부모
a378fb0
이 시점의 파일 보기

변경된 파일 1개

+24-5
수정src/Zipelo.Desktop/WorkerDeployment.targets+24-5
@@ -1,5 +1,7 @@
11<Project>
22 <PropertyGroup>
3추가: <!-- 명시적으로 전달하는 게시 속성을 제거 목록에 중복하지 않음. -->
4추가: <_ZipeloWorkerPublishRemoveProperties>PublishProfile;PublishProfileFullPath;PublishUrl;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild;PublishSelfContained</_ZipeloWorkerPublishRemoveProperties>
35 <_ZipeloWorkerProject>$(MSBuildThisFileDirectory)../Zipelo.Worker/Zipelo.Worker.csproj</_ZipeloWorkerProject>
46 </PropertyGroup>
57
@@ -33,16 +35,33 @@
3335 SkipUnchangedFiles="true" />
3436 </Target>
3537
36삭제: <!-- 게시 시 개발 빌드 폴더 대신 같은 RID와 런타임 방식의 게시물을 사용함. -->
38추가: <!-- 최종 배치는 UI 게시 위치 아래에 SDK가 같은 RID로 별도 게시하도록 함. -->
3739 <Target Name="PublishZipeloWorker" AfterTargets="Publish" DependsOnTargets="PrepareZipeloWorkerDeployment"
3840 Condition="'$(DesignTimeBuild)' != 'true' And ('$(OS)' == 'Windows_NT' Or '$(RuntimeIdentifier)' == 'win-x64')">
41추가: <Error Condition="'$(PublishDir)' == ''" Text="Windows UI 게시 출력 디렉터리가 비어 있습니다." />
3942 <PropertyGroup>
43추가: <_ZipeloWorkerPublishSelfContained>$(_ZipeloWorkerSelfContained)</_ZipeloWorkerPublishSelfContained>
44추가: <_ZipeloWorkerPublishSelfContained Condition="'$(PublishSelfContained)' != ''">$(PublishSelfContained)</_ZipeloWorkerPublishSelfContained>
45추가: <_ZipeloWorkerPublishStage>$([System.IO.Path]::GetFullPath('$(IntermediateOutputPath)', '$(MSBuildProjectDirectory)'))/zipelo-worker-publish/$([System.Guid]::NewGuid())/</_ZipeloWorkerPublishStage>
4046 <_ZipeloWorkerPublishDirectory>$([System.IO.Path]::GetFullPath('$(PublishDir)', '$(MSBuildProjectDirectory)'))/worker/</_ZipeloWorkerPublishDirectory>
4147 </PropertyGroup>
48추가: <!-- 이번 게시의 새 SDK 출력만 수집하며 이전 bin/publish를 검색하지 않음. -->
49추가: <MakeDir Directories="$(_ZipeloWorkerPublishStage)" />
4250 <MSBuild Projects="$(_ZipeloWorkerProject)" Targets="Publish"
43삭제: RemoveProperties="TargetFramework;PublishProfile;PublishProfileFullPath;PublishDir;OutputPath;OutDir;BaseOutputPath;BaseIntermediateOutputPath;IntermediateOutputPath;TargetDir;NoBuild"
44삭제: Properties="Configuration=$(Configuration);TargetFramework=net10.0;RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(_ZipeloWorkerSelfContained);UseAppHost=true;PublishSingleFile=false;PublishTrimmed=false;PublishDir=$(_ZipeloWorkerPublishDirectory)" />
45삭제: <Error Condition="!Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.exe') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.dll') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.runtimeconfig.json') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Worker.deps.json') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Core.dll') Or !Exists('$(_ZipeloWorkerPublishDirectory)Zipelo.Runtime.dll')"
46삭제: Text="작업자 게시 파일이 누락되어 배포를 완료할 수 없습니다." />
51추가: RemoveProperties="$(_ZipeloWorkerPublishRemoveProperties)"
52추가: Properties="Configuration=$(Configuration);TargetFramework=net10.0;RuntimeIdentifier=$(RuntimeIdentifier);SelfContained=$(_ZipeloWorkerPublishSelfContained);UseAppHost=true;PublishSingleFile=false;PublishTrimmed=false;PublishAot=false;PublishDir=$(_ZipeloWorkerPublishStage)" />
53추가: <ItemGroup>
54추가: <_ZipeloWorkerPublishRequired Include="$(_ZipeloWorkerPublishStage)Zipelo.Worker.exe;$(_ZipeloWorkerPublishStage)Zipelo.Worker.dll;$(_ZipeloWorkerPublishStage)Zipelo.Worker.deps.json;$(_ZipeloWorkerPublishStage)Zipelo.Worker.runtimeconfig.json;$(_ZipeloWorkerPublishStage)Zipelo.Core.dll;$(_ZipeloWorkerPublishStage)Zipelo.Runtime.dll" />
55추가: <_ZipeloWorkerPublishRequired Include="$(_ZipeloWorkerPublishStage)System.Private.CoreLib.dll;$(_ZipeloWorkerPublishStage)coreclr.dll;$(_ZipeloWorkerPublishStage)clrjit.dll;$(_ZipeloWorkerPublishStage)hostfxr.dll;$(_ZipeloWorkerPublishStage)hostpolicy.dll"
56추가: Condition="'$(_ZipeloWorkerPublishSelfContained)' == 'true'" />
57추가: </ItemGroup>
58추가: <Error Condition="!Exists('%(_ZipeloWorkerPublishRequired.Identity)')" Text="Windows 작업자 필수 게시 파일이 누락되었습니다: %(_ZipeloWorkerPublishRequired.Filename)%(_ZipeloWorkerPublishRequired.Extension)" />
59추가: <ItemGroup>
60추가: <_ZipeloWorkerPublishedFile Include="$(_ZipeloWorkerPublishStage)**/*" />
61추가: </ItemGroup>
62추가: <Copy SourceFiles="@(_ZipeloWorkerPublishedFile)"
63추가: DestinationFiles="@(_ZipeloWorkerPublishedFile->'$(_ZipeloWorkerPublishDirectory)%(RecursiveDir)%(Filename)%(Extension)')"
64추가: SkipUnchangedFiles="false" />
65추가: <RemoveDir Directories="$(_ZipeloWorkerPublishStage)" />
4766 </Target>
4867</Project>