From 7f7f9caee91dc3987921343304682eb5f7ce0088 Mon Sep 17 00:00:00 2001 From: Tw93 Date: Sat, 14 Sep 2024 14:41:43 +0800 Subject: [PATCH] :pencil: update cli readme --- README.md | 11 ----------- bin/README.md | 17 +++++++++++++++++ bin/README_CN.md | 17 +++++++++++++++++ 3 files changed, 34 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 14a4614..56383af 100644 --- a/README.md +++ b/README.md @@ -173,17 +173,6 @@ pake url [OPTIONS]... # Feel free to play with Pake! It might take a while to prepare the environment the first time you launch Pake. pake https://weekly.tw93.fun --name Weekly --hide-title-bar -# On Linux, you can run the Pake CLI via Docker -docker run -it --rm \ # Run interactively, remove container after exit - -v YOUR_DIR:/output \ # Files from container's /output will be in YOU_DIR - ghcr.io/tw93/pake \ - - -# For example: -docker run -it --rm \ - -v ./packages:/output \ - ghcr.io/tw93/pake \ - https://example.com --name myapp --icon ./icon.png ``` If you are new to the command line, you can compile packages online with _GitHub Actions_. See the [Tutorial]() for more information. diff --git a/bin/README.md b/bin/README.md index 4c835a1..f3ab03a 100644 --- a/bin/README.md +++ b/bin/README.md @@ -264,3 +264,20 @@ The typed package has dev-tools for debugging, in addition to outputting more lo ## Conclusion After completing the above steps, your application should be successfully packaged. Please note that the packaging process may take some time depending on your system configuration and network conditions. Be patient, and once the packaging is complete, you can find the application installer in the specified directory. + +## Docker + +```shell +# On Linux, you can run the Pake CLI via Docker +docker run -it --rm \ # Run interactively, remove container after exit + -v YOUR_DIR:/output \ # Files from container's /output will be in YOU_DIR + ghcr.io/tw93/pake \ + + +# For example: +docker run -it --rm \ + -v ./packages:/output \ + ghcr.io/tw93/pake \ + https://example.com --name myapp --icon ./icon.png + +``` diff --git a/bin/README_CN.md b/bin/README_CN.md index 027f4e6..2b507f0 100644 --- a/bin/README_CN.md +++ b/bin/README_CN.md @@ -273,3 +273,20 @@ PS: 安全域名不需要携带协议。 ## 结语 完成上述步骤后,您的应用程序应该已经成功打包。请注意,根据您的系统配置和网络状况,打包过程可能需要一些时间。请耐心等待,一旦打包完成,您就可以在指定的目录中找到应用程序安装包。 + +## Docker + +```shell +# 在Linux上,您可以通过 Docker 运行 Pake CLI。 +docker run -it --rm \ # Run interactively, remove container after exit + -v YOUR_DIR:/output \ # Files from container's /output will be in YOU_DIR + ghcr.io/tw93/pake \ + + +# For example: +docker run -it --rm \ + -v ./packages:/output \ + ghcr.io/tw93/pake \ + https://example.com --name myapp --icon ./icon.png + +```