chore: rename

This commit is contained in:
草鞋没号 2021-11-22 14:22:17 +08:00
parent e522cf352d
commit dfc3d86534

View File

@ -1,7 +1,7 @@
process.env.NODE_ENV = 'production' process.env.NODE_ENV = 'production'
import { build as viteBuild } from 'vite' import { build as viteBuild } from 'vite'
import { build as electronBuild2 } from 'electron-builder' import { build as electronBuild } from 'electron-builder'
import { config as builderConfig } from '../configs/electron-builder.config.mjs' import { config as builderConfig } from '../configs/electron-builder.config.mjs'
import chalk from 'chalk' import chalk from 'chalk'
@ -23,9 +23,9 @@ async function buildElectron() {
} }
async function packElectron() { async function packElectron() {
return electronBuild2({ config: builderConfig }) return electronBuild({ config: builderConfig })
.then(result => { .then(result => {
console.log(TAG, chalk.green(`electron-builder.build result - ${result}`)) console.log(TAG, chalk.green(`[electron-builder.build result]: ${result}`))
}) })
} }