postcat/scripts/afterInstall.js
Scarqin a51feb0311
feat/ui-component (#188)
* feat: update extension UI
* fix(components): [manage-access] a tag rename to span
* feat: update e2e

Co-authored-by: buqiyuan <1743369777@qq.com>
Co-authored-by: 夜鹰 <17kungfuboy@gmail.com>
2022-12-30 23:46:51 +08:00

20 lines
529 B
JavaScript

const fs = require('fs');
const path = require('path');
// 输入文件
const inputPath = path.join(__dirname, '../patches/windowsCodeSign.js');
// 输出文件
const outputPath = path.join(__dirname, '../node_modules/app-builder-lib/out/codeSign/windowsCodeSign.js');
fs.readFile(inputPath, 'utf8', (err, data) => {
if (err) {
return console.error(err);
}
fs.writeFile(outputPath, data, { flag: 'w', encoding: 'utf8' }, err => {
if (err) {
console.error('app-builder-lib writeFile', err);
}
});
});