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

# Pack コマンド

> Pack コマンド

`pack` コマンドは、レイアウトをタッチ アダプテーション バンドル (takx) にパッケージ化するために使用されます。

このバンドルは、[serve](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-serve-command.md) コマンドを介してローカル テストで利用可能となり、Microsoft アカウント担当者が XBOX Game Streaming 経由のユーザー向けに提出します。

以下の表は、`pack` コマンドで使用できるさまざまなオプションを示しています。

| オプション | 説明 |
| - | - |
| `--layout-path <layout-path>` | バンドルに含めたいルート レイアウト ディレクトリへのパス。このパラメーターは必須です。 |
| `--out` `--output-path <output-path>` | パッケージ化されたタッチ アダプテーション バンドルの出力ファイルを指定します。通常は .takx ファイルです。このパラメーターは必須です。 |
| `--asset-path <asset-path>` | バンドルに含めたいルート アセット ディレクトリへのパス。バンドルにアセットがない場合、このパラメーターは必須ではありません。 |
| `--context file <context-file>` | バンドルに含めたいコンテキスト ファイルへのパス。バンドルにコンテキストがない場合、このパラメーターは必須ではありません。 |
| `--default-layout <default-layout>` | デフォルト レイアウトの名前。layout path 内のファイルの 1 つの名前と一致する必要があります。 |
| `--version <version>` | 1.0.0.0 などの、タッチ アダプテーション バンドルのコンテンツ バージョン。タイトルに対して Microsoft に提出される各タッチ アダプテーション バンドルは、以前に提出されたどのタッチ アダプテーション バンドルよりもセマンティックに大きなバージョン番号を持つ必要があります。既存のバンドルのバージョンを確認するには、[takx-version](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-takx-version-command.md) コマンドを使用できます。ゲームがストリーミング中に使用しているタッチ アダプテーション バンドルのバージョン番号は、[XGameStreamingGetTouchBundleVersion](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md) を呼び出すことで取得できます |
| `--version-name <version-name>` | 「DLC 1」など、タッチ アダプテーション バンドルのコンテンツ バージョンの名前。バージョン番号とは異なり、バージョン名はオプションで、そのフォーマットに関する要件はありません。既存のバンドルのバージョンを確認するには、[takx-version](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-takx-version-command.md) コマンドを使用できます。ゲームがストリーミング中に使用しているタッチ アダプテーション バンドルのバージョン名は、[XGameStreamingGetTouchBundleVersion](https://docs.xbox.com/ja-jp/reference/system/xgamestreaming/functions/xgamestreaminggettouchbundleversion.md) を呼び出すことで取得できます |
| `--no-asset-optimization` | 効率的な保存および通信のためにアセットが最適化されないようにします。設定されている場合、アセットは変更されません。 |
| `--no-verify` | 生成されたタッチ アダプテーション バンドルが有効であり、検証されないようにします。 |
| `--language <language>` | 生成されたバンドルに含めたい言語の IETF 言語タグ。このパラメーターを複数回指定すると、提供されたすべての言語が含まれます。パラメーターが指定されない場合、ソース ディレクトリで見つかったすべてのレイアウトとアセットがバンドルに含まれます。 |

### 例

次のコード例を使用して、レイアウトをタッチ アダプテーション バンドルにパッケージ化します。

***

layout-path 内のすべてのレイアウトを、バージョン 1.0.0.0 の単一のタッチ アダプテーション バンドルにパッケージ化します

```
C:\>tak pack --layout-path C:\tmp\layouts --out C:\tmp\MyGameLayouts.takx --version 1.0.0.0
Building touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'
Verifying touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'.
Verification complete. 0 error(s) and 0 warning(s) found.
```

***

layout-path 内のすべてのレイアウトを単一のタッチ アダプテーション バンドルにパッケージ化します。ゲームが特定のレイアウト リクエストを行う前にユーザーに提示されるレイアウトとして `introLayout` を設定します

```
C:\>tak pack --layout-path C:\tmp\layouts --out C:\tmp\MyGameLayouts.takx --default-layout introLayout
Building touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'
Verifying touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'.
Verification complete. 0 error(s) and 0 warning(s) found.
```

***

アセット最適化なしで、layout-path 内の en-us レイアウトのみを単一のタッチ アダプテーション バンドルにパッケージ化します

```
C:\>tak pack --layout-path C:\tmp\layouts --out C:\tmp\MyGameLayouts.takx --language en-us --no-asset-optimization
Building touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'
Verifying touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'.
Verification complete. 0 error(s) and 0 warning(s) found.
```

***

layout-path 内の en-us と es-us のレイアウトのみを単一のタッチ アダプテーション バンドルにパッケージ化します。

```
C:\>tak pack --layout-path C:\tmp\layouts --out C:\tmp\MyGameLayouts.takx --language en-us --language es-us
Building touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'
Verifying touch adaptation bundle 'C:\tmp\MyGameLayouts.takx'.
Verification complete. 0 error(s) and 0 warning(s) found.
```

***

## 関連項目

[Touch Adaptation Kit Command Line Tool (tak.exe)](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line.md)


## Related topics

- [Touch Adaptation Kit (TAK) コマンド ライン ツール リファレンス](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/index.md)
- [タイトル パッケージング、更新、およびストリーミング インストールのテスト](https://docs.xbox.com/ja-jp/build/core-features/common/packaging/title-packaging-streaming-install-testing.md)
- [Submission Validator の概要](https://docs.xbox.com/ja-jp/build/core-features/common/packaging/subval/submissionvalidator.md)
- [Verify コマンド](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-verify-command.md)
- [Unpack コマンド](https://docs.xbox.com/ja-jp/build/core-features/common/game-streaming/tak-command-line-tool/game-streaming-tak-command-line-unpack-command.md)
