更新依赖
This commit is contained in:
@@ -53,7 +53,7 @@ const replaceQrcDecodeLib = async(electronNodeAbi, platform, arch) => {
|
||||
|
||||
module.exports = async(context) => {
|
||||
const { electronPlatformName, arch } = context
|
||||
const electronVersion = context.packager?.info?._framework?.version ?? require('../package.json').devDependencies.electron.replace(/.*?(\d+)/, '$1')
|
||||
const electronVersion = context.packager?.info?._framework?.version ?? require('../package.json').devDependencies.electron.replace(/^[^\d]*?(\d+)/, '$1')
|
||||
const electronNodeAbi = nodeAbi.getAbi(electronVersion, 'electron')
|
||||
await replaceQrcDecodeLib(electronNodeAbi, electronPlatformName, arch)
|
||||
if (electronPlatformName !== 'linux' || process.env.FORCE) return
|
||||
|
||||
@@ -6,9 +6,9 @@ const libDir = path.join(__dirname, 'lib')
|
||||
|
||||
const getGzipFiles = async() => {
|
||||
const names = await fs.promises.readdir(libDir)
|
||||
for (const name of names) {
|
||||
if (name.endsWith('.node')) await fs.promises.unlink(path.join(libDir, name))
|
||||
}
|
||||
// for (const name of names) {
|
||||
// if (name.endsWith('.node')) await fs.promises.unlink(path.join(libDir, name))
|
||||
// }
|
||||
return names.filter(name => name.endsWith('.gz'))
|
||||
}
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user