当前位置:   article > 正文

使用Electron做一个windows的应用市场_electron 开发一个内部应用商店

electron 开发一个内部应用商店

使用Electron做一个windows的应用市场

核心思想

  • 各应用分别打包成asar文件,在主应用中加载各asar应用包

    const path = Path.join(__dirname, '..', `${appId}.asar`);
    const pagePath = url.format({
        protocol: 'file',
        slashes: true,
        pathname: `${path}/index.html`
    });
    global.mainWindow.loadURL(pagePath);
    
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/544700
推荐阅读
相关标签
  

闽ICP备14008679号