2

我正在尝试打包 doxygen 以在 Microsoft Store 中分发,但我无法手动转换应用程序。(Doxygen 非常简单,4 个文件:3 个 .exe 和 1 个 .dll)我最初只想导出最常用的控制台入口点:doxygen.exe。这是我的清单。

我正在关注此处找到的文档。一切都很好,直到最后一步,在打包之前通过测试

Add-AppxPackage -Register AppxManifest.xml

导致错误

Add-AppxPackage:无效数据。(0x8007000D)

priconfig.xml生成后我的包文件夹布局如下resources.pri

在此处输入图像描述

应用清单如下(删除了我的发布者 ID):

<?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:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
  xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities">
  <Identity
    Name="XYZ.DoxygenUnofficial"
    Version="1.8.18.0"
    Publisher="CN=..."
    ProcessorArchitecture="x64" />
  <Properties>
    <DisplayName>Doxygen (Unofficial)</DisplayName>
    <PublisherDisplayName>XYZ</PublisherDisplayName>
    <Description>Doxygen is the de facto standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL and to some extent D.</Description>
    <Logo>Assets\doxygen.png</Logo>
  </Properties>
  <Resources>
    <Resource Language="en-US" />
  </Resources>
    <Dependencies>
      <TargetDeviceFamily
        Name="Windows.Desktop"
        MinVersion="10.0.17763.0"
        MaxVersionTested="10.0.18335.0" />
    </Dependencies>
    <Capabilities>
      <rescap:Capability Name="runFullTrust"/>
    </Capabilities>
  <Applications>
    <Application
      Id="DOXYGEN"
      Executable="VFS\ProgramFilesX64\Doxygen\bin\doxygen.exe"
      EntryPoint="Windows.FullTrustApplication">
      <uap:VisualElements
        DisplayName="Doxygen"
        Description="Command-line interface"
        Square150x150Logo="Assets\icon.png"
        Square44x44Logo="Assets\small_icon.png"
        BackgroundColor="#234ea6" />
      <Extensions>
        <uap3:Extension
          Category="windows.appExecutionAlias"
          EntryPoint="Windows.FullTrustApplication"
          Executable="VFS\ProgramFilesX64\Doxygen\bin\doxygen.exe">
          <uap3:AppExecutionAlias>
            <desktop:ExecutionAlias Alias="doxygen.exe" />
          </uap3:AppExecutionAlias>
        </uap3:Extension>
      </Extensions>
    </Application>
  </Applications>
</Package>

我究竟做错了什么?我能得到更有意义的错误吗?

4

0 回答 0