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: 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