Skip to content

[features]: xinstall: 索引库中的包文件结构定义 #41

Closed
@Sunrisepeak

Description

@Sunrisepeak

Features Describe | 功能描述

当前包结构

function support()

end

function installed()

end

function install()

end

function uninstall()

end

function deps()

end

function info()

end

索引库中的包文件结构定义

Usage Scenario | 需求背景/使用场景 - 要思考的问题

  • 版本差异
  • 不同系统的差异
  • 包名重复问题
  • 哪些部分交给框架来做, 哪些部分由包安装文件实现者来做?

Maybe Solutions | 可能的实现方案 - (if you are developer)

temp solutions

image

function cmdprocessor(target, cmd) {
    xpkg = index_manager.load_pkg(target)
    pm_executor = pkg_manager_service.create(xpkg.get_pm_name())
    if cmd == install then
        pm_executor.install(xpkg)
    else
    ....
}

Additional context | 额外补充

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions