소스 검색

Get working on Electron 9, full dependency refresh.

Daniel Scalzi 5 년 전
부모
커밋
53d5599545
4개의 변경된 파일386개의 추가작업 그리고 609개의 파일을 삭제
  1. 382 608
      package-lock.json
  2. 1 0
      package.json
  3. 3 1
      src/main/index.ts
  4. 0 0
      static/images/SealCircle.ico

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 382 - 608
package-lock.json


+ 1 - 0
package.json

@@ -71,6 +71,7 @@
     "cross-env": "^7.0.2",
     "electron": "^9.1.0",
     "electron-builder": "^22.7.0",
+    "electron-devtools-installer": "^3.1.0",
     "electron-webpack": "^2.8.2",
     "electron-webpack-ts": "^4.0.1",
     "eslint": "^7.4.0",

+ 3 - 1
src/main/index.ts

@@ -5,6 +5,8 @@ import { format } from 'url'
 import { autoUpdater } from 'electron-updater'
 import isdev from '../common/util/isdev'
 
+declare const __static: string
+
 const installExtensions = async () => {
     // eslint-disable-next-line @typescript-eslint/no-var-requires
     const installer = require('electron-devtools-installer')
@@ -240,7 +242,7 @@ function getPlatformIcon(filename: string){
             break
     }
 
-    return join(__dirname, '..', 'assets', 'images', `${filename}.${ext}`)
+    return join(__static, 'images', `${filename}.${ext}`)
 }
 
 app.on('ready', createWindow)

+ 0 - 0
assets/images/SealCircle.ico → static/images/SealCircle.ico


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.