ci: 使用 NSIS 打包 Windows 安装包替代 ZIP

This commit is contained in:
zyj
2026-03-10 09:18:34 +08:00
parent 449105a8e5
commit a50af3f07a
7 changed files with 453 additions and 5 deletions

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<Package
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10">
<Identity
Name="com.peteragent.app"
Publisher="CN=Peter Agent"
Version="0.1.0.0"
ProcessorArchitecture="x64" />
<Properties>
<DisplayName>Peter Agent</DisplayName>
<PublisherDisplayName>Peter Agent</PublisherDisplayName>
<Description>AI Agent Application powered by Eino + Chroma</Description>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>
<Resources>
<Resource Language="en-us" />
</Resources>
<Applications>
<Application Id="com.peteragent.app" Executable="peter-agent.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements
DisplayName="Peter Agent"
Description="AI Agent Application"
BackgroundColor="transparent"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" />
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
<Extensions>
<desktop:Extension Category="windows.fullTrustProcess" Executable="peter-agent.exe" />
</Extensions>
</Application>
</Applications>
<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>