@ -92,4 +92,33 @@ For example, [packages/z/zlib/xmake.lua](https://github.com/xmake-io/xmake-repo/
If you want to known more, please see: [Create and Submit packages to the official repository](https://xmake.io/#/package/remote_package?id=submit-packages-to-the-official-repository)
## Create a package template from Github
We need to install the [gh](https://github.com/cli/cli) cli tool first, and then execute the following command to log in to github.
```console
$ gh auth login
```
Create a package configuration file to this warehouse based on the package address of github.
```console
$ xmake l scripts/new.lua github:glennrp/libpng
package("libpng")
set_homepage("http://libpng.sf.net")
set_description("LIBPNG: Portable Network Graphics support, official libpng repository")