Skip to content

Commit d0cde7a

Browse files
committed
Fix | deps
1 parent 7e09089 commit d0cde7a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525

2626
strategy:
2727
matrix:
28-
configuration: [Debug]
28+
configuration: [Debug,Release]
2929
platform: [x64, x86, arm64]
3030

3131
runs-on: windows-latest
@@ -57,7 +57,7 @@ jobs:
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
@@ -67,7 +67,7 @@ jobs:
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

ShadowViewer/MainWindow.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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();

ShadowViewer/ShadowViewer.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,15 @@
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" /> -->

0 commit comments

Comments
 (0)