1 Star 0 Fork 20

jlutt / im-web

forked from 礼貌 / im-web 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
afterPack.js 647 Bytes
一键复制 编辑 原始数据 按行查看 历史
礼貌 提交于 2022-04-19 23:10 . (更新) 全量,增量更新
const path = require('path')
const AdmZip = require('adm-zip')
const config = require('./package.json')
exports.default = async function (context) {
let targetPath
if (context.packager.platform.nodeName === 'darwin') {
targetPath = path.join(context.appOutDir, `${context.packager.appInfo.productName}.app/Contents/Resources`)
} else {
targetPath = path.join(context.appOutDir, './resources')
}
const unpacked = path.join(targetPath, './app.asar.unpacked')
const zip = new AdmZip();
zip.addLocalFolder(unpacked)
zip.writeZip(path.join(context.outDir, 'asar.unpacked_' + config.version + '.zip'))
}
1
https://gitee.com/jlutt/im-web.git
git@gitee.com:jlutt/im-web.git
jlutt
im-web
im-web
master

搜索帮助