-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for creating and updating locales (#480)
- Loading branch information
1 parent
9fd1078
commit 445ffa2
Showing
20 changed files
with
1,609 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# new-locale command (Winget-Create) | ||
|
||
The **new-locale** command of the [Winget-Create](../README.md) tool is designed to create a new locale for an existing manifest from the [Windows Package Manager repo](https://docs.microsoft.com/windows/package-manager/). This command offers an interactive flow, prompting user for a set of locale fields and then generating a new locale manifest. | ||
|
||
## Usage | ||
|
||
Add a new locale for the latest version of a package: | ||
|
||
`wingetcreate.exe new-locale <PackageIdentifier> --token <GitHubPersonalAccessToken>` | ||
|
||
Add a new locale for a specific version of a package: | ||
|
||
`wingetcreate.exe new-locale <PackageIdentifier> --token <GitHubPersonalAccessToken> --version <Version>` | ||
|
||
Create a new locale and save the generated manifests to a specified directory: | ||
|
||
`wingetcreate.exe new-locale <PackageIdentifier> --out <OutputDirectory> --token <GitHubPersonalAccessToken> --version <Version>` | ||
|
||
## Arguments | ||
|
||
The following arguments are available: | ||
|
||
| Argument | Description | | ||
|--------------|-------------| | ||
| **id** | Required. Package identifier used to lookup the existing manifest on the Windows Package Manager repo. | ||
| **-v, --version** | The version of the package to add a new locale for. Default is the latest version. | ||
| **-l, --locale** | The package locale to create a new manifest for. If not provided, the tool will prompt you for this value. | ||
| **-r, --reference-locale** | Existing locale manifest to be used as reference for default values. If not provided, the default locale manifest will be used. | ||
| **-o, --out** | The output directory where the newly created manifests will be saved locally. | ||
| **-t,--token** | GitHub personal access token used for direct submission to the Windows Package Manager repo | | ||
| **-?, --help** | Gets additional help on this command | | ||
|
||
Instructions on setting up GitHub Token for Winget-Create can be found [here](../README.md#github-personal-access-token-classic-permissions). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# update-locale command (Winget-Create) | ||
|
||
The **update-locale** command of the [Winget-Create](../README.md) tool is designed to update existing locales for a manifest from the [Windows Package Manager repo](https://docs.microsoft.com/windows/package-manager/). This command offers an interactive flow, prompting user for a set of locale fields and then generating a new manifest for submission. | ||
|
||
## Usage | ||
|
||
Update existing locales for the latest version of a package: | ||
|
||
`wingetcreate.exe update-locale <PackageIdentifier> --token <GitHubPersonalAccessToken>` | ||
|
||
Update existing locales for a specific version of a package: | ||
|
||
`wingetcreate.exe update-locale <PackageIdentifier> --token <GitHubPersonalAccessToken> --version <Version>` | ||
|
||
Update existing locale and save the generated manifests to a specified directory: | ||
|
||
`wingetcreate.exe update-locale <PackageIdentifier> --out <OutputDirectory> --token <GitHubPersonalAccessToken> --version <Version>` | ||
|
||
## Arguments | ||
|
||
The following arguments are available: | ||
|
||
| Argument | Description | | ||
|--------------|-------------| | ||
| **id** | Required. Package identifier used to lookup the existing manifest on the Windows Package Manager repo. | ||
| **-v, --version** | The version of the package to update the locale for. Default is the latest version. | ||
| **-l, --locale** | The package locale to update the manifest for. If not provided, the tool will prompt you a list of existing locales to choose from. | ||
| **-o, --out** | The output directory where the newly created manifests will be saved locally. | ||
| **-t,--token** | GitHub personal access token used for direct submission to the Windows Package Manager repo | | ||
| **-?, --help** | Gets additional help on this command | | ||
|
||
Instructions on setting up GitHub Token for Winget-Create can be found [here](../README.md#github-personal-access-token-classic-permissions). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.