Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ll-convert-tool #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chenchongbiao
Copy link
Contributor

添加 ll-convert-tool 命令用来提供,转换 deb、appimage、flatpak 的功能。

Log: add command

Copy link

  • 检测到敏感词export, unset变动
详情
    {
    "export": {
        "cmd/ll-convert-tool/cli/convert.ab": {
            "b": [
                "import { generator_version, ll_cli_info, generator_linglong_base_cache, get_base_cache_path, generator_linglong_yaml, ll_builder_build, ll_builder_export, ll_builder_run, check_linglong_files } from \"../core/linglong.ab\"",
                "        echo_info(\"ll-builder export\")",
                "        ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"export {filename} data\")",
                "        error(\"export {flatpak_name} data error\")",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)"
            ]
        },
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    export DEBIAN_FRONTEND=noninteractive && \\"
            ]
        },
        "cmd/ll-convert-tool/core/linglong.ab": {
            "b": [
                "pub fun ll_builder_export(path, output) {",
                "    $cd {parent_dir} && ll-builder export {output}$ failed {",
                "        error(\"ll-buildrer export {parent_dir} error\")",
                "    echo_success(\"ll-builder export success\")"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "ll_builder_export__192_v0() {",
                "    cd ${parent_dir} && ll-builder export ${output};",
                "        error__92_v0 \"ll-buildrer export ${parent_dir} error\" 1;",
                "    echo_success__90_v0 \"ll-builder export success\";",
                "    __AMBER_VAL_37=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");",
                "        echo_info__89_v0 \"ll-builder export\";",
                "        ll_builder_export__192_v0 \"${linglong_file_path}\" \"${output}\";",
                "        __AF_ll_builder_export192_v0__249_9=\"$__AF_ll_builder_export192_v0\";",
                "        echo \"$__AF_ll_builder_export192_v0__249_9\" > /dev/null 2>&1",
                "    echo_info__89_v0 \"ll-builder export\";",
                "    ll_builder_export__192_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export192_v0__359_5=\"$__AF_ll_builder_export192_v0\";",
                "    echo \"$__AF_ll_builder_export192_v0__359_5\" > /dev/null 2>&1",
                "    echo_info__89_v0 \"export ${filename} data\";",
                "        error__92_v0 \"export ${flatpak_name} data error\" 1;",
                "    echo_info__89_v0 \"ll-builder export\";",
                "    ll_builder_export__192_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export192_v0__496_5=\"$__AF_ll_builder_export192_v0\";",
                "    echo \"$__AF_ll_builder_export192_v0__496_5\" > /dev/null 2>&1"
            ]
        }
    },
    "unset": {
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    unset LC_ALL && \\",
                "    unset LANG && \\",
                "    unset LANG_UAGE && \\"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "    __AMBER_VAL_37=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");"
            ]
        }
    }
}

@chenchongbiao chenchongbiao requested review from black-desk and removed request for liujianqiang-niu December 11, 2024 08:54
@chenchongbiao
Copy link
Contributor Author

/integrate

Copy link

AutoIntegrationPr Bot
auto integrate with pr url: deepin-community/Repository-Integration#2350
PrNumber: 2350
PrBranch: auto-integration-12272860918

Copy link

  • 检测到debian目录文件有变更: debian/control

  • 检测到敏感词export, unset变动

详情
    {
    "export": {
        "cmd/ll-convert-tool/cli/convert.ab": {
            "b": [
                "import { generator_version, ll_cli_info, generator_linglong_base_cache, get_base_cache_path, generator_linglong_yaml, ll_builder_build, ll_builder_export, ll_builder_run, check_linglong_files } from \"../core/linglong.ab\"",
                "        echo_info(\"ll-builder export\")",
                "        ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"export {filename} data\")",
                "        error(\"export {flatpak_name} data error\")",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)"
            ]
        },
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    export DEBIAN_FRONTEND=noninteractive && \\"
            ]
        },
        "cmd/ll-convert-tool/core/linglong.ab": {
            "b": [
                "pub fun ll_builder_export(path, output) {",
                "    $cd {parent_dir} && ll-builder export {output}$ failed {",
                "        error(\"ll-buildrer export {parent_dir} error\")",
                "    echo_success(\"ll-builder export success\")"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "ll_builder_export__192_v0() {",
                "    cd ${parent_dir} && ll-builder export ${output};",
                "        error__92_v0 \"ll-buildrer export ${parent_dir} error\" 1;",
                "    echo_success__90_v0 \"ll-builder export success\";",
                "    __AMBER_VAL_37=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");",
                "        echo_info__89_v0 \"ll-builder export\";",
                "        ll_builder_export__192_v0 \"${linglong_file_path}\" \"${output}\";",
                "        __AF_ll_builder_export192_v0__249_9=\"$__AF_ll_builder_export192_v0\";",
                "        echo \"$__AF_ll_builder_export192_v0__249_9\" > /dev/null 2>&1",
                "    echo_info__89_v0 \"ll-builder export\";",
                "    ll_builder_export__192_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export192_v0__359_5=\"$__AF_ll_builder_export192_v0\";",
                "    echo \"$__AF_ll_builder_export192_v0__359_5\" > /dev/null 2>&1",
                "    echo_info__89_v0 \"export ${filename} data\";",
                "        error__92_v0 \"export ${flatpak_name} data error\" 1;",
                "    echo_info__89_v0 \"ll-builder export\";",
                "    ll_builder_export__192_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export192_v0__496_5=\"$__AF_ll_builder_export192_v0\";",
                "    echo \"$__AF_ll_builder_export192_v0__496_5\" > /dev/null 2>&1"
            ]
        }
    },
    "unset": {
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    unset LC_ALL && \\",
                "    unset LANG && \\",
                "    unset LANG_UAGE && \\"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "    __AMBER_VAL_37=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");"
            ]
        }
    }
}

Copy link

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 9,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

@chenchongbiao
Copy link
Contributor Author

/integrate

black-desk
black-desk previously approved these changes Dec 12, 2024
@black-desk
Copy link
Contributor

@chenchongbiao ci找人帮你看一下

@chenchongbiao
Copy link
Contributor Author

@chenchongbiao ci找人帮你看一下

debian 构建还没时间处理,先不管

@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chenchongbiao

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

1 similar comment
@deepin-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: chenchongbiao

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

Copy link

  • 检测到debian目录文件有变更: debian/control

  • 检测到敏感词export, unset变动

详情
    {
    "export": {
        "cmd/ll-convert-tool/cli/convert.ab": {
            "b": [
                "import { generator_version, ll_cli_info, generator_linglong_base_cache, get_base_cache_path, generator_linglong_yaml, ll_builder_build, ll_builder_export, ll_builder_run, check_linglong_files } from \"../core/linglong.ab\"",
                "        echo_info(\"ll-builder export\")",
                "        ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"export {filename} data\")",
                "        echo_error(\"export {flatpak_name} data error\")",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)"
            ]
        },
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    export DEBIAN_FRONTEND=noninteractive && \\"
            ]
        },
        "cmd/ll-convert-tool/core/linglong.ab": {
            "b": [
                "pub fun ll_builder_export(path, output) {",
                "    $cd {parent_dir} && ll-builder export {output}$ failed {",
                "        echo_error(\"ll-buildrer export {parent_dir} echo_error\")",
                "    echo_success(\"ll-builder export success\")"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "ll_builder_export__201_v0() {",
                "    cd ${parent_dir} && ll-builder export ${output};",
                "        echo_error__109_v0 \"ll-buildrer export ${parent_dir} echo_error\" 1;",
                "    echo_success__107_v0 \"ll-builder export success\";",
                "    __AMBER_VAL_44=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");",
                "        echo_info__106_v0 \"ll-builder export\";",
                "        ll_builder_export__201_v0 \"${linglong_file_path}\" \"${output}\";",
                "        __AF_ll_builder_export201_v0__251_9=\"$__AF_ll_builder_export201_v0\";",
                "        echo \"$__AF_ll_builder_export201_v0__251_9\" > /dev/null 2>&1",
                "    echo_info__106_v0 \"ll-builder export\";",
                "    ll_builder_export__201_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export201_v0__361_5=\"$__AF_ll_builder_export201_v0\";",
                "    echo \"$__AF_ll_builder_export201_v0__361_5\" > /dev/null 2>&1",
                "    echo_info__106_v0 \"export ${filename} data\";",
                "        echo_error__109_v0 \"export ${flatpak_name} data error\" 1;",
                "    echo_info__106_v0 \"ll-builder export\";",
                "    ll_builder_export__201_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export201_v0__498_5=\"$__AF_ll_builder_export201_v0\";",
                "    echo \"$__AF_ll_builder_export201_v0__498_5\" > /dev/null 2>&1"
            ]
        }
    },
    "unset": {
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    unset LC_ALL && \\",
                "    unset LANG && \\",
                "    unset LANG_UAGE && \\"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "    __AMBER_VAL_44=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");"
            ]
        }
    }
}

Copy link

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 9,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

@deepin-ci-robot
Copy link

deepin pr auto review

关键摘要:

  • Makefile中新增的安装命令可能需要检查目标路径是否存在,以确保安装过程不会失败。
  • convert.ab中的convert_deb函数中,对shell_scripts的处理可能需要更严格的错误检查,以避免潜在的脚本执行错误。
  • convert.ab中的convert_appimage函数中,对apprun_list的处理可能需要更详细的错误处理,以应对文件不存在或路径错误的情况。
  • convert.ab中的convert_flatpak函数中,对flatpak_name的处理可能需要更严格的错误检查,以避免潜在的空指针异常。
  • ll-convert-tool脚本中,对环境变量的处理可能需要更严格的错误检查,以避免潜在的空指针异常。
  • ll-convert-tool脚本中,对文件路径的处理可能需要更严格的错误检查,以避免潜在的路径错误。

是否建议立即修改:

@chenchongbiao chenchongbiao force-pushed the 20241211-add-ll-convert-tool branch from 89e423a to 0bf57c3 Compare January 3, 2025 07:21
Copy link

github-actions bot commented Jan 3, 2025

  • 检测到debian目录文件有变更: debian/control

  • 检测到敏感词export, unset变动

详情
    {
    "export": {
        "cmd/ll-convert-tool/cli/convert.ab": {
            "b": [
                "import { generator_version, ll_cli_info, generator_linglong_base_cache, get_base_cache_path, generator_linglong_yaml, ll_builder_build, ll_builder_export, ll_builder_run, check_linglong_files } from \"../core/linglong.ab\"",
                "        echo_info(\"ll-builder export\")",
                "        ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"export {filename} data\")",
                "        echo_error(\"export {flatpak_name} data error\")",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)"
            ]
        },
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    export DEBIAN_FRONTEND=noninteractive && \\"
            ]
        },
        "cmd/ll-convert-tool/core/linglong.ab": {
            "b": [
                "pub fun ll_builder_export(path, output) {",
                "    $cd {parent_dir} && ll-builder export {output}$ failed {",
                "        echo_error(\"ll-buildrer export {parent_dir} echo_error\")",
                "    echo_success(\"ll-builder export success\")"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "ll_builder_export__201_v0() {",
                "    cd ${parent_dir} && ll-builder export ${output};",
                "        echo_error__109_v0 \"ll-buildrer export ${parent_dir} echo_error\" 1;",
                "    echo_success__107_v0 \"ll-builder export success\";",
                "    __AMBER_VAL_44=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");",
                "        echo_info__106_v0 \"ll-builder export\";",
                "        ll_builder_export__201_v0 \"${linglong_file_path}\" \"${output}\";",
                "        __AF_ll_builder_export201_v0__251_9=\"$__AF_ll_builder_export201_v0\";",
                "        echo \"$__AF_ll_builder_export201_v0__251_9\" > /dev/null 2>&1",
                "    echo_info__106_v0 \"ll-builder export\";",
                "    ll_builder_export__201_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export201_v0__361_5=\"$__AF_ll_builder_export201_v0\";",
                "    echo \"$__AF_ll_builder_export201_v0__361_5\" > /dev/null 2>&1",
                "    echo_info__106_v0 \"export ${filename} data\";",
                "        echo_error__109_v0 \"export ${flatpak_name} data error\" 1;",
                "    echo_info__106_v0 \"ll-builder export\";",
                "    ll_builder_export__201_v0 \"${linglong_file_path}\" \"${output}\";",
                "    __AF_ll_builder_export201_v0__498_5=\"$__AF_ll_builder_export201_v0\";",
                "    echo \"$__AF_ll_builder_export201_v0__498_5\" > /dev/null 2>&1"
            ]
        }
    },
    "unset": {
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    unset LC_ALL && \\",
                "    unset LANG && \\",
                "    unset LANG_UAGE && \\"
            ]
        },
        "cmd/ll-convert-tool/ll-convert-tool": {
            "b": [
                "    __AMBER_VAL_44=$(sudo chroot ${rootfs_path} /usr/bin/env bash -e -o pipefail -c \"    export DEBIAN_FRONTEND=noninteractive &&     unset LC_ALL &&     unset LANG &&     unset LANG_UAGE &&     ${command}\");"
            ]
        }
    }
}

Copy link

github-actions bot commented Jan 3, 2025

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 9,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

@chenchongbiao
Copy link
Contributor Author

/integrate

添加 ll-convert-tool 命令用来提供,转换 deb、appimage、flatpak 的功能。

Log: add command
@chenchongbiao chenchongbiao force-pushed the 20241211-add-ll-convert-tool branch from 0bf57c3 to 83e15be Compare January 7, 2025 09:13
Copy link

github-actions bot commented Jan 7, 2025

  • 检测到debian目录文件有变更: debian/control

  • 检测到敏感词export, unset变动

详情
    {
    "export": {
        "cmd/ll-convert-tool/cli/convert.ab": {
            "b": [
                "import { generator_version, ll_cli_info, generator_linglong_base_cache, get_base_cache_path, generator_linglong_yaml, ll_builder_build, ll_builder_export, ll_builder_run, check_linglong_files } from \"../core/linglong.ab\"",
                "        echo_info(\"ll-builder export\")",
                "        ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)",
                "    echo_info(\"export {filename} data\")",
                "        echo_error(\"export {flatpak_name} data error\")",
                "    echo_info(\"ll-builder export\")",
                "    ll_builder_export(linglong_file_path, output)"
            ]
        },
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    export DEBIAN_FRONTEND=noninteractive && \\"
            ]
        },
        "cmd/ll-convert-tool/core/linglong.ab": {
            "b": [
                "pub fun ll_builder_export(path, output) {",
                "    $cd {parent_dir} && ll-builder export {output}$ failed {",
                "        echo_error(\"ll-buildrer export {parent_dir} echo_error\")",
                "    echo_success(\"ll-builder export success\")"
            ]
        }
    },
    "unset": {
        "cmd/ll-convert-tool/core/chroot.ab": {
            "b": [
                "    unset LC_ALL && \\",
                "    unset LANG && \\",
                "    unset LANG_UAGE && \\"
            ]
        }
    }
}

Copy link

github-actions bot commented Jan 7, 2025

  • 敏感词检查失败, 检测到1个文件存在敏感词
详情
{
    "debian/control": [
        {
            "line": "Homepage: http://www.deepin.org",
            "line_number": 9,
            "rule": "S35",
            "reason": "Url link | 6fe814dfb7"
        }
    ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants