Apply suggestions

This commit is contained in:
qhy040404
2023-11-22 13:39:07 +08:00
parent 1117e322a6
commit 126d19e96a
2 changed files with 73 additions and 6 deletions

View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:com="http://schemas.microsoft.com/appx/manifest/com/windows10"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
IgnorableNamespaces="com uap desktop rescap mp">
<Identity
Name="60568DGPStudio.SnapHutaoDev"
Publisher="CN=35C8E923-85DF-49A7-9172-B39DC6312C52"
Version="1.8.0.0" />
<Properties>
<DisplayName>Snap Hutao Dev</DisplayName>
<PublisherDisplayName>DGP Studio</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.19041.0" MaxVersionTested="10.0.22621.0" />
</Dependencies>
<Resources>
<Resource Language="en-us"/>
<Resource Language="zh-cn"/>
</Resources>
<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="Snap Hutao Dev"
Description="A Snap Hutao Dev Software"
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square71x71Logo="Assets\SmallTile.png" Square310x310Logo="Assets\LargeTile.png"/>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
<Extensions>
<desktop:Extension Category="windows.toastNotificationActivation">
<desktop:ToastNotificationActivation ToastActivatorCLSID="5760ec4d-f7e8-4666-a965-9886d7dffe7d"/>
</desktop:Extension>
<com:Extension Category="windows.comServer">
<com:ComServer>
<com:ExeServer Executable="Snap.Hutao.exe" Arguments="-ToastActivated" DisplayName="Snap Hutao Dev Toast Activator">
<com:Class Id="5760ec4d-f7e8-4666-a965-9886d7dffe7d" DisplayName="Snap Hutao Dev Toast Activator"/>
</com:ExeServer>
</com:ComServer>
</com:Extension>
<uap:Extension Category="windows.protocol">
<uap:Protocol Name="hutao">
<uap:DisplayName>胡桃 Dev</uap:DisplayName>
</uap:Protocol>
</uap:Extension>
</Extensions>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name="runFullTrust"/>
</Capabilities>
</Package>

View File

@@ -38,6 +38,11 @@
<AppxBundlePlatforms>x64</AppxBundlePlatforms>
<Configurations>Debug;Release</Configurations>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest" Condition="'$(ConfigurationName)'!='Debug'"/>
<AppxManifest Include="Package-Dev.appxmanifest" Condition="'$(ConfigurationName)'=='Debug'"/>
</ItemGroup>
<!-- Included Files -->
<ItemGroup>
@@ -760,10 +765,4 @@
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<Target Name="PreBuild" Condition="'$(ConfigurationName)'=='Debug'" BeforeTargets="PreBuildEvent">
<Exec Command="powershell -Command &quot;$content = Get-Content $(ProjectDir)Package.appxmanifest -Encoding UTF8 | ForEach-Object { $_ -replace 'Snap Hutao', 'Snap Hutao Dev'} | ForEach-Object { $_ -replace 'SnapHutao', 'SnapHutaoDev'}; $content | Set-Content $(ProjectDir)Package.appxmanifest -Encoding UTF8&quot;" />
</Target>
<Target Name="PostBuild" Condition="'$(ConfigurationName)'=='Debug'" AfterTargets="PostBuildEvent">
<Exec Command="powershell -Command &quot;$content = Get-Content $(ProjectDir)Package.appxmanifest -Encoding UTF8 | ForEach-Object { $_ -replace 'Snap Hutao Dev', 'Snap Hutao'} | ForEach-Object { $_ -replace 'SnapHutaoDev', 'SnapHutao'}; $content | Set-Content $(ProjectDir)Package.appxmanifest -Encoding UTF8&quot;" />
</Target>
</Project>