Skip to content

Commit

Permalink
rebuild manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
tvrcgo committed Apr 14, 2022
1 parent 93e2fa0 commit d7c70b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import fs from 'fs'
import type { IApi } from 'umi'
import fg from 'fast-glob'
import * as electronBuilder from 'electron-builder'
import electronDev from './dev'
import runDev from './dev'

const webpackBaseConfig = (api: IApi) => {
const env: 'development'| 'production' = (api.env === 'development' ? 'development' : 'production')
Expand Down Expand Up @@ -119,7 +119,8 @@ function handleCompiler(entry, compiler, api) {
isFirstBuild = false
} else {
api.logger.info('Restart electron ...')
electronDev(api)
buildManifest(api)
runDev(api)
}
})
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { IApi } from 'umi'
import { buildApp, buildSrc } from './build'
import electronDev from './dev'
import runDev from './dev'

export default function(api: IApi) {

Expand Down Expand Up @@ -33,7 +33,7 @@ export default function(api: IApi) {
switch (step) {
case 2:
// run electron
electronDev(api)
runDev(api)
break
case 4:
// build app
Expand Down

0 comments on commit d7c70b2

Please sign in to comment.