File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 11// 这里定义了静态文件路径的位置
22import { join } from "path" ;
3- import config from "@config/index " ;
3+ import { HotUpdateFolder } from "./const " ;
44import { app } from "electron" ;
55import { URL } from "url" ;
66const isDev = process . env . NODE_ENV === "development" ;
@@ -9,7 +9,7 @@ class StaticPath {
99 const basePath = isDev
1010 ? join ( __dirname , ".." , ".." , ".." )
1111 : join ( app . getAppPath ( ) , ".." , ".." ) ;
12- this . __updateFolder = join ( basePath , `${ config . HotUpdateFolder } ` ) ;
12+ this . __updateFolder = join ( basePath , `${ HotUpdateFolder } ` ) ;
1313 if ( isDev ) {
1414 this . __static = join ( basePath , "public" ) ;
1515 this . __lib = join (
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ export const hotPublishUrl: string =
66export const hotPublishConfigName : string = "update-config" ;
77export const openDevTools : boolean = false ;
88export const DisableF12 : boolean = true ;
9+ export const HotUpdateFolder : string = "hot-update" ;
You can’t perform that action at this time.
0 commit comments