mirror of
https://github.com/rememberber/MooTool.git
synced 2026-12-01 03:18:19 +08:00
9 lines
485 B
JavaScript
9 lines
485 B
JavaScript
module.exports = async context => {
|
|
if (context.electronPlatformName === 'darwin') return
|
|
const { prepareOcrResources } = await import('./prepare-ocr-resources.mjs')
|
|
const { packageOcrComponent } = await import('./package-ocr-component.mjs')
|
|
const arch = { 0: 'ia32', 1: 'x64', 2: 'armv7l', 3: 'arm64' }[context.arch]
|
|
const resources = await prepareOcrResources(context.electronPlatformName, arch)
|
|
await packageOcrComponent(resources, context.electronPlatformName, arch)
|
|
}
|