從命令列封裝Package from the command line

如果您未在 Visual Studio 中開發應用程式,您可以使用 MSIX 命令列工具來封裝和簽署應用程式。If you don't develop your app in Visual Studio, you can use the MSIX command line tools to package and sign your applications.

用途Purpose

本節連結至使用命令列工具將應用程式手動封裝為 MSIX 的文章。This section links to articles about manually packaging your app as an MSIX using command line tools.

主題Topic 描述Description
產生封裝元件Generating package components 建立套件資訊清單並新增以目標為基礎的 unplated 資產(選擇性)Create a package manifest and add Target-based unplated assets (optional)
使用 Makeappx.exe 工具建立 MSIX 套件或配套Create an MSIX package or bundle with the MakeAppx.exe tool MakeAppx.exe 建立、加密、解密應用程式套件與套件組合,並從應用程式套件與套件組合中擷取檔案。MakeAppx.exe creates, encrypts, decrypts, and extracts files from app packages and bundles.
建立封裝簽署的憑證Create a certificate for package signing 使用 PowerShell 工具,建立和匯出應用程式套件簽署的憑證。Create and export a certificate for app package signing with PowerShell tools.
使用 SignTool 簽署應用程式套件Sign an app package using SignTool 使用 SignTool,手動簽署具憑證的應用程式套件。Use SignTool to manually sign an app package with a certificate.

進階主題Advanced topics

這一節包含有關元件化大型和/或複雜應用程式以進行更有效率封裝和安裝的進階主題。This section contains more advanced topics for componentizing a large and/or complex app for more efficient packaging and installation.

重要

如果您想要提交應用程式至 Microsoft Store,您需要連絡Windows 開發人員支援,並取得核准使用本節中的任何進階功能。If you intend to submit your app to the Store, you need to contact Windows developer support and get approval to use any of the advanced features in this section.

主題Topic 描述Description
使用封裝版面配置建立套件Package creation with the packaging layout 封裝配置是一份描述應用程式封裝結構的文件。The packaging layout is a single document that describes packaging structure of the app. 它會指定應用程式套件組合(主要和選用)、套件組合中的套件,和套件中的檔案。It specifies the bundles of an app (primary and optional), the packages in the bundles, and the files in the packages.
資產封裝簡介Introduction to asset packages 資產套件是一種套件,做為應用程式的常見檔案的集中位置 – 有效免除架構套件中的重複檔案。Asset packages are a type of package that act as a centralized location for an application’s common files – effectively eliminating the necessity for duplicated files throughout its architecture packages.
使用資產套件和封裝折迭進行開發Developing with asset packages and package folding 了解如何使用資產套件與套件摺疊有效地組織您的應用程式。Learn how to efficiently organize your app with asset packages and package folding.
一般配套應用程式套件Flat bundle app packages 說明如何為您的應用程式套件檔案建立一般配套。Describes how to create a flat bundle for your app’s package files.