Continue to optimize packaging issues under Linux

This commit is contained in:
Tw93
2025-10-20 10:15:51 +08:00
parent d4bbea917e
commit eb128c6aa7
7 changed files with 165 additions and 50 deletions

View File

@@ -441,16 +441,19 @@ pake ./my-app/index.html --name "my-app" --use-local-file
## 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
# 在 Linux 上通过 Docker 运行 Pake CLIAppImage 构建需要 FUSE 权限)
docker run --rm --privileged \
--device /dev/fuse \
--security-opt apparmor=unconfined \
-v YOUR_DIR:/output \
ghcr.io/tw93/pake \
<arguments>
# For example:
docker run -it --rm \
# 例如:
docker run --rm --privileged \
--device /dev/fuse \
--security-opt apparmor=unconfined \
-v ./packages:/output \
ghcr.io/tw93/pake \
https://example.com --name MyApp --icon ./icon.png
https://example.com --name MyApp --icon ./icon.png --targets appimage
```