Ver Fonte

Get working on Electron 9, full dependency refresh.

Daniel Scalzi há 5 anos atrás
pai
commit
53d5599545
4 ficheiros alterados com 386 adições e 609 exclusões
  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

Diff do ficheiro suprimidas por serem muito extensas
+ 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


Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff