File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 2525
2626 strategy :
2727 matrix :
28- configuration : [Debug]
28+ configuration : [Debug,Release ]
2929 platform : [x64, x86, arm64]
3030
3131 runs-on : windows-latest
5757 uses : microsoft/setup-msbuild@v2
5858
5959 - name : Restore the application
60- run : msbuild $env:Solution_Name/$env:Solution_Name.csproj /t:Restore /p:Configuration=Debug
60+ run : msbuild $env:Solution_Name/$env:Solution_Name.csproj /t:Restore /p:Configuration=$env:Configuration /p:GithubAction=true
6161 env :
6262 Configuration : ${{ matrix.configuration }}
6363 - name : Decode the pfx
6767 [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte)
6868
6969 - name : Create the app package
70- run : msbuild $env:Solution_Name/$env:Solution_Name.csproj /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=../GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true
70+ run : msbuild $env:Solution_Name/$env:Solution_Name.csproj /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=../GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true /p:GithubAction=true
7171 env :
7272 Appx_Bundle : Never
7373 Appx_Package_Build_Mode : SideloadOnly
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ private async Task OnLoading()
8585 sw . Start ( ) ;
8686#endif
8787 ApplicationExtensionHost . Initialize ( Application . Current ) ;
88-
88+ Debug . WriteLine ( CoreSettings . Instance . IsDebug ) ;
8989 InitDi ( ) ;
9090 // 数据库
9191 InitDatabase ( ) ;
Original file line number Diff line number Diff line change 102102 <PackageReference Include =" WinUIEx" Version =" 2.5.1" />
103103
104104 </ItemGroup >
105- <ItemGroup Condition =" '$(Configuration)' == 'Debug'" >
105+ <ItemGroup Condition =" '$(Configuration)' == 'Debug' Or '$(GithubAction)' == 'true' " >
106106 <!-- <ProjectReference Include="..\ShadowViewer.Core\ShadowViewer.Core\ShadowViewer.Core.csproj" /> -->
107107 <ProjectReference Include =" ..\ShadowViewer.Controls\ShadowViewer.Controls.TitleBar\ShadowViewer.Controls.TitleBar.csproj" />
108108 <ProjectReference Include =" ..\ShadowViewer.Plugin.Local\ShadowViewer.Plugin.Local\ShadowViewer.Plugin.Local.csproj" />
109109 <ProjectReference Include =" ..\ShadowViewer.Plugin.PluginManager\ShadowViewer.Plugin.PluginManager.csproj" />
110110 <!-- <PackageReference Include="ShadowViewer.Plugin.Local" Version="1.3.8" /> -->
111111 <!-- <PackageReference Include="ShadowViewer.Plugin.PluginManager" Version="1.3.8"/> -->
112112 </ItemGroup >
113- <ItemGroup Condition =" '$(Configuration)' == 'Release'" >
113+ <ItemGroup Condition =" '$(Configuration)' == 'Release' And '$(GithubAction)' != 'true' " >
114114 <!-- <ProjectReference Include="..\ShadowViewer.Core\ShadowViewer.Core\ShadowViewer.Core.csproj" /> -->
115115 <!-- <PackageReference Include="ShadowViewer.Plugin.Local" Version="1.3.14" /> -->
116116 <!-- <PackageReference Include="ShadowViewer.Plugin.PluginManager" Version="1.3.14" /> -->
You can’t perform that action at this time.
0 commit comments