Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

框架与业务分离

木休大人 edited this page Feb 26, 2017 · 4 revisions

框架与业务分离,业务采用插件机制进行维护升级

👉 本地目录结构

   -- .bce/
      -- config.json
      -- db/
      -- extensions/
          -- bos.asar
              -- index.js
              -- package.json
              -- README.md
              -- LICENSE
          -- bcc.asar

👉 BOS更新服务目录配置

-- bce-client
-- update/
   -- lastest.yml (window)
   -- lastest-mac.json (mac)
   -- extensions.json
-- doc/
   -- config.json (doc config)
-- releases
    -- client
       -- v0.3.0-beta/
           -- xxx-nsis.exe
           -- xxx.zip
           -- xxx.dmg
    -- extensions
        -- bos-0.1.0.asar

👉 extensions.json 结构

{
    extensions: [
        {
            name: 'bos',
            category: 'service/sdk/cli',
            author: '张三',
            icon: 'base64',
            desc: '哈哈',
            repository: {
                '>=0.3.x': {
                    version: '1.0.0',
                    url: 'http: /xxx',
                    sha256: '123123123',
                }
            }
        }
    ]
}