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,54 @@
<?xml version="1.0" encoding="utf-8"?>
<MsixPackagingToolTemplate
xmlns="http://schemas.microsoft.com/msix/packaging/msixpackagingtool/template/2022">
<Settings
AllowTelemetry="false"
ApplyACLsToPackageFiles="true"
GenerateCommandLineFile="true"
AllowPromptForPassword="false">
</Settings>
<Installer
Path="peter-agent.exe"
Arguments=""
InstallLocation="C:\Program Files\Peter Agent\Peter Agent">
</Installer>
<PackageInformation
PackageName="Peter Agent"
PackageDisplayName="Peter Agent"
PublisherName="CN=Peter Agent"
PublisherDisplayName="Peter Agent"
Version="0.1.0.0"
PackageDescription="AI Agent Application powered by Eino + Chroma">
<Capabilities>
<Capability Name="runFullTrust" />
</Capabilities>
<Applications>
<Application
Id="com.peteragent.app"
Description="AI Agent Application"
DisplayName="Peter Agent"
ExecutableName="peter-agent.exe"
EntryPoint="Windows.FullTrustApplication">
</Application>
</Applications>
<Resources>
<Resource Language="en-us" />
</Resources>
<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
</Dependencies>
<Properties>
<Framework>false</Framework>
<DisplayName>Peter Agent</DisplayName>
<PublisherDisplayName>Peter Agent</PublisherDisplayName>
<Description>AI Agent Application</Description>
<Logo>Assets\AppIcon.png</Logo>
</Properties>
</PackageInformation>
<SaveLocation PackagePath="peter-agent.msix" />
<PackageIntegrity>
<CertificatePath></CertificatePath>
</PackageIntegrity>
</MsixPackagingToolTemplate>