> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Esquema do pacote de implantação

> Esquema do pacote de implantação

O arquivo de mapeamento usado como entrada para a ferramenta makepkg tem cinco elementos permitidos que descrevem o conteúdo de um pacote: Package, Chunk, File, Recipe e Feature. Esses elementos descrevem o pacote geral, os segmentos individuais de um pacote que podem ser transmitidos por streaming (chunks) e os arquivos em cada um desses chunks.  Features permitem grupos de chunks que os usuários podem optar por instalar ou remover, e Recipes permitem que o conjunto de Features habilitadas para uma determinada instalação seja vinculado a direitos de uso pertencentes ao usuário ou a um console doméstico do usuário.

Um arquivo de mapeamento pequeno poderia ser parecido com o exemplo de código a seguir.

```xml theme={null}
<Package>
  <Chunk Id="1000" Marker="Launch">
    <FileGroup DestinationPath="\" SourcePath="X:\bin" Include="*.*"/>
  </Chunk>
  <Chunk Id="1001">
    <FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level1" Include="*.map"/>
    <FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level2" Include="*.map"/>
    <FileGroup DestinationPath="\Data\Maps" SourcePath="Y:\Maps\Level3" Include="*.map"/>
    <FileGroup DestinationPath="\Data\Maps" SourcePath="W:\ExtraMaps" Include="*.map"/>
    <FileGroup DestinationPath="\Data\Textures" SourcePath="M:\MapTextures" Include="*.png"/>
    <FileGroup DestinationPath="\Data\Textures" SourcePath="W:\ExtraMapTextures" Include="*.png"/>
  </Chunk>
</Package>  
```

O MicrosoftGame.config e todos os arquivos que ele referencia (por exemplo, Logo, Splash Screen etc.) devem ser incluídos em um File Group ao gerar seu pacote. O GameOs.xvd não deve ser incluído no seu arquivo de mapeamento, pois ele é inserido automaticamente no seu pacote durante a geração do pacote.

<a id="ID4E2" />

## Exemplos de Intelligent Delivery

O arquivo de mapeamento a seguir demonstra como usar o Intelligent Delivery para controlar quais chunks são instalados pelo sistema e define *Features* que o usuário pode optar por habilitar ou desabilitar no momento da instalação e, posteriormente, a partir do shell. Cada chunk pode ter um *especificador* para que os chunks possam ser entregues seletivamente com base no tipo de dispositivo e nas configurações de idioma do console.  Qualquer pacote que use *Features* também deve especificar uma *Recipe* padrão e pode, opcionalmente, especificar Recipes adicionais.

```xml theme={null}
<Package>
    <!-- Features bring down Chunks with the associated Tags.
         Users can override install defaults to deselect features they don't want,
         and can add/remove features from within the shell after install as well. -->
    <Features>
        <Feature Id="CampaignFeature" DisplayName="MyGame Campaign Name" Image="CampaignLogo.png" Tags="CampaignTag" />
        <Feature Id="MultiPlayerFeature" DisplayName="MyGame Multiplayer Name" Image="MPLogo.png" Tags="MPTag" />
        <Feature Id="PremiumFeature" Image="PremiumLogo.png" Tags="PremiumTag" />
    </Features>
    <!-- Recipes declare which Features are included for a given install.
         Recipes are additive, and persist for the life of an install,
         They are never removed, though users can choose to add/remove individual Features -->
    <Recipes>
        <!-- default Recipe is always active -->
        <Recipe Id="default" IncludedFeatures="CampaignFeature;MPFeature"/>
        <!-- PremiumProduct Recipe is active, causing PremiumFeature to be installed if user owns 9PXXXXXXXXXX -->
        <Recipe Id="PremiumProduct" IncludedFeatures="PremiumFeature">
            <StoreId>9PXXXXXXXXXX</StoreId>
        </Recipe>
    </Recipes>
    <Chunk Id="1000" Marker="Launch">
        <FileGroup DestinationPath="\" SourcePath="X:\bin" Include="*.*"/>
        <FileGroup DestinationPath="\Maps" SourcePath=".\Maps" Include="map.idx"/>
    </Chunk>
    <Chunk Id="2000">
        <FileGroup DestinationPath="\Maps" SourcePath=".\Maps" Include="*.map"/>
    </Chunk>
    <Chunk Id="3000">
        <FileGroup DestinationPath="\Maps" SourcePath="Z:\Extras" Include="*.map"/>
        <FileGroup DestinationPath="\Pics" SourcePath=".\Images" Include="*.png"/>
        <FileGroup DestinationPath="\Pics" SourcePath="Z:\Extras" Include="*.png"/>
    </Chunk>
    <!--Chunk 4000 will be installed if the best language fit for the console language is French-->
    <!--Make sure that any language specifiers used here are also in your MicrosoftGame.config-->
    <Chunk Id="4000" Languages="fr">
        <FileGroup DestinationPath="\Localized\Fr" SourcePath="Z:\Localized\fr" Include="*.dat"/>
    </Chunk>
    <!--Chunk 5000 will be installed on Anaconda consoles-->
    <Chunk Id="5000" Devices="Xbox-Anaconda">
        <FileGroup DestinationPath="\Anaconda" SourcePath="Z:\Anaconda" Include="*.dat"/>
    </Chunk>
    <!--Chunk 6000 contains the Campaign mode content-->
    <Chunk Id="6000" Tags="CampaignTag">
        <FileGroup DestinationPath="\Campaign" SourcePath="Z:\Campaign" Include="*.dat"/>
    </Chunk>
    <!--Chunk 6100 contains the Campaign mode content specific to French language-->
    <Chunk Id="6100" Tags="CampaignTag" Languages="fr">
        <FileGroup DestinationPath="\Campaign\fr" SourcePath="Z:\Campaign\fr" Include="*.dat"/>
    </Chunk>
    <!--Chunk 6200 contains the Campaign mode content specific to English language-->
    <Chunk Id="6200" Tags="CampaignTag" Languages="en">
        <FileGroup DestinationPath="\Campaign\en" SourcePath="Z:\Campaign\en" Include="*.dat"/>
    </Chunk>
    <!--Chunk 7000 contains the Multiplayer mode content-->
    <Chunk Id="7000" Tags="MPTag">
        <FileGroup DestinationPath="\Multiplayer" SourcePath="Z:\Multiplayer" Include="*.dat"/>
    </Chunk>
    <!--Chunk 7100 contains the Multiplayer mode content specific to French language-->
    <Chunk Id="7100" Tags="MPTag" Languages="fr">
        <FileGroup DestinationPath="\Multiplayer\fr" SourcePath="Z:\Multiplayer\fr" Include="*.dat"/>
    </Chunk>
    <!--Chunk 7200 contains the Multiplayer mode content specific to English language-->
    <Chunk Id="7200" Tags="MPTag" Languages="en">
        <FileGroup DestinationPath="\Multiplayer\en" SourcePath="Z:\Multiplayer\en" Include="*.dat"/>
    </Chunk>
    <!--Chunk 8000 contains the premium content which is triggered for download by the PremiumProduct
        Recipe if user owns ProductID 9PXXXXXXXXXX-->
    <Chunk Id="8000" Tags="PremiumTag">
        <FileGroup DestinationPath="\Premium" SourcePath="Z:\premium" Include="*.dat"/>
    </Chunk>
</Package>
```

<a id="ID4EXE" />

## Nesta seção

[Chunk](/pt-BR/build/core-features/common/packaging/deployment/deployment-element-chunk)
Descreve uma coleção de arquivos que devem ser instalados como um grupo.

[FileGroup](/pt-BR/build/core-features/common/packaging/deployment/deployment-element-filegroup)
Descreve uma regra pela qual os arquivos serão adicionados a um *chunk*.

[Package](/pt-BR/build/core-features/common/packaging/deployment/deployment-element-package)
Descreve uma coleção de chunks que compõem uma instalação completa de um título.

<a id="ID4EDF" />

## Confira também

[Criar pacote (makepkg.exe)](/pt-BR/build/core-features/common/packaging/deployment/makepkg)


## Related topics

- [Compile e execute seu primeiro título de console com o GDKX](/pt-BR/home/build-first-title/first-console-title-walkthrough.md)
- [Glossário de termos e siglas do GDK](/pt-BR/home/glossary.md)
- [Esquemas](/es/services/playfab/data-analytics/acting-data/schemas-overview.md)
- [XR-037 Dependências de pacotes de conteúdo](/pt-BR/publishing/certification/xr/xr-037.md)
- [Acesse recursos e downloads do GDK](/pt-BR/home/onboarding-access/access-resources.md)
