mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-06-08 15:12:02 +00:00
Merge pull request #977 from TMYTiMidlY/fix/linux-key-service-packaged-build
fix(linux): initialize key service in packaged builds
This commit is contained in:
@@ -397,13 +397,7 @@ let keyService: any
|
|||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
keyService = new KeyServiceMac()
|
keyService = new KeyServiceMac()
|
||||||
} else if (process.platform === 'linux') {
|
} else if (process.platform === 'linux') {
|
||||||
// const { KeyServiceLinux } = require('./services/keyServiceLinux')
|
keyService = new KeyServiceLinux()
|
||||||
// keyService = new KeyServiceLinux()
|
|
||||||
|
|
||||||
import('./services/keyServiceLinux').then(({ KeyServiceLinux }) => {
|
|
||||||
keyService = new KeyServiceLinux();
|
|
||||||
});
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
keyService = new KeyService()
|
keyService = new KeyService()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { execFile, exec, spawn } from 'child_process'
|
|||||||
import { promisify } from 'util'
|
import { promisify } from 'util'
|
||||||
import crypto from 'crypto'
|
import crypto from 'crypto'
|
||||||
import { createRequire } from 'module';
|
import { createRequire } from 'module';
|
||||||
const require = createRequire(import.meta.url);
|
const require = createRequire(__filename);
|
||||||
|
|
||||||
const execFileAsync = promisify(execFile)
|
const execFileAsync = promisify(execFile)
|
||||||
const execAsync = promisify(exec)
|
const execAsync = promisify(exec)
|
||||||
|
|||||||
Reference in New Issue
Block a user