> ## 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.

# 배포 패키지 스키마

> 배포 패키지 스키마

makepkg 도구의 입력으로 사용되는 매핑 파일에는 패키지의 내용을 설명하는 5개의 허용된 요소가 있습니다. Package, Chunk, File, Recipe, Feature입니다. 이러한 요소는 전체 패키지, 패키지의 개별 스트림 가능 세그먼트(청크), 각 청크의 파일을 설명합니다. Feature를 사용하면 사용자가 설치하거나 제거할 청크 그룹을 선택할 수 있으며, Recipe는 주어진 설치에 대해 사용 가능한 Feature 집합을 사용자 또는 사용자의 홈 콘솔이 소유한 자격 증명과 연결할 수 있게 합니다.

작은 매핑 파일은 다음 코드 예제와 같을 수 있습니다.

```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>  
```

패키지를 생성할 때 MicrosoftGame.config와 이 파일이 참조하는 모든 파일(예: Logo, 시작 화면 등)은 File Group에 포함되어야 합니다. GameOs.xvd는 패키지 생성 중에 패키지에 자동으로 포함되므로 매핑 파일에 포함해서는 안 됩니다.

<a id="ID4E2" />

## Intelligent Delivery 예제

다음 매핑 파일은 시스템이 설치하는 청크를 제어하기 위해 Intelligent Delivery를 사용하는 방법을 보여주며, 사용자가 설치 시점 및 나중에 셸 내에서 활성화 또는 비활성화하도록 선택할 수 있는 *Feature*를 정의합니다. 각 청크는 \*지정자(specifier)\*를 가질 수 있으므로 콘솔의 장치 유형과 언어 설정에 따라 청크를 선택적으로 전달할 수 있습니다. *Feature*를 사용하는 모든 패키지는 기본 *Recipe*도 지정해야 하며, 선택적으로 추가 Recipe를 지정할 수 있습니다.

```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" />

## 이 섹션에서

[Chunk](/build/core-features/common/packaging/deployment/deployment-element-chunk)
그룹으로 설치되어야 하는 파일 모음을 설명합니다.

[FileGroup](/build/core-features/common/packaging/deployment/deployment-element-filegroup)
*청크*에 파일이 추가될 규칙을 설명합니다.

[Package](/build/core-features/common/packaging/deployment/deployment-element-package)
타이틀의 완전한 설치를 구성하는 청크 모음을 설명합니다.

<a id="ID4EDF" />

## 함께 보기

[Make package (makepkg.exe)](/build/core-features/common/packaging/deployment/makepkg)


## Related topics

- [배포 패키지 스키마 및 스트리밍 설치 도구](/ko/build/core-features/common/packaging/deployment/index.md)
- [<Chunk> 요소](/ko/build/core-features/common/packaging/deployment/deployment-element-chunk.md)
- [<FileGroup> 요소](/ko/build/core-features/common/packaging/deployment/deployment-element-filegroup.md)
- [<Package> 요소](/ko/build/core-features/common/packaging/deployment/deployment-element-package.md)
- [Make package (makepkg.exe)](/ko/build/core-features/common/packaging/deployment/makepkg.md)
