From 507ea6766516a1ed1387140c38564eca894f85be Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Thu, 9 Oct 2025 03:18:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=93=9D=20docs(readme):=20add=20parame?= =?UTF-8?q?ter=20usage=20examples=20for=20script=20installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add tip section explaining parameter support for 1panel installation path and app selection - provide example command with --1panel-path and --app parameters - include both English and Chinese documentation updates --- README-en.md | 10 ++++++++++ README.md | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/README-en.md b/README-en.md index 777ef70f1..977429ab5 100644 --- a/README-en.md +++ b/README-en.md @@ -48,6 +48,16 @@ Dedicated to running various Docker applications with just one click. Enjoy conv ## 2. Usage +> [!TIP] +> +> The current script supports specifying the installation path for 1panel using parameters, as well as specifying the Apps to be imported. If your 1panel is installed in /opt, you just need to: +> +> ```bash +> curl -sSL https:// ... update_local_appstore.sh | bash -s -- --1panel-path /opt --app app_name_1 --app app_name_2 +> ``` +> +> **app_name must be the name of the folder below the repository app/** + In the `Shell Script` task type in the `1Panel` scheduled tasks, add and execute the following command, or run the following command in the terminal: ```shell diff --git a/README.md b/README.md index 8d7782ea4..c8db0f631 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,16 @@ ## 2. 使用方式 +> [!TIP] +> +> 当前脚本支持使用参数指定 1panel 的安装路径,以及指定想导入的Apps。假如你的 1panel 安装在 /opt,你只需要: +> +> ```bash +> curl -sSL https:// ... update_local_appstore.sh | bash -s -- --1panel-path /opt --app app_name_1 --app app_name_2 +> ``` +> +> **app_name 必须是仓库 app/ 下面的文件夹名** + `1Panel`计划任务类型`Shell 脚本`的计划任务框里,添加并执行以下命令,或者终端运行以下命令, ```shell From 69559ea186422ea93209d4ef3be6eec05f44d7b1 Mon Sep 17 00:00:00 2001 From: pooneyy <85266337+pooneyy@users.noreply.github.com> Date: Thu, 9 Oct 2025 03:18:37 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E2=9C=A8=20feat(renovate):=20add=20directo?= =?UTF-8?q?ry=20content=20verification?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - add check_directory_contents function to print directory contents - integrate directory content check after successful directory rename for better debugging --- .github/workflows/renovate-app-version.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/renovate-app-version.py b/.github/workflows/renovate-app-version.py index 804c6b9d5..b302a8724 100644 --- a/.github/workflows/renovate-app-version.py +++ b/.github/workflows/renovate-app-version.py @@ -55,6 +55,10 @@ def replace_version_in_dirname(old_ver_dir : str, new_version : str) -> str: else: return new_version +def check_directory_contents(check_dir): + print(f"{check_dir} 目录内容:") + for item in os.listdir(check_dir): + print(f" - {item}") def safe_rename_directory(old_path: str, new_path: str) -> bool: """ @@ -81,6 +85,7 @@ def safe_rename_directory(old_path: str, new_path: str) -> bool: # 验证重命名是否成功 if os.path.exists(new_path) and not os.path.exists(old_path): + check_directory_contents(new_path) print(f"✓ 重命名成功") return True else: