ready for merge with main
This commit is contained in:
parent
788c6fdfdb
commit
03bc1d5270
@ -1,23 +0,0 @@
|
|||||||
import { app } from 'electron'
|
|
||||||
import path from 'path'
|
|
||||||
const isDev = process.env.NODE_ENV === 'development'
|
|
||||||
const appPath = app.getAppPath()
|
|
||||||
const resourcesPath = path.dirname(appPath)
|
|
||||||
const keysPath = path.join(resourcesPath, 'keys')
|
|
||||||
if (isDev) {
|
|
||||||
require('dotenv').config()
|
|
||||||
}
|
|
||||||
|
|
||||||
export function getWVKPath() {
|
|
||||||
if (isDev) {
|
|
||||||
const clientid = process.env.WV_DID
|
|
||||||
const key = process.env.WV_PRV
|
|
||||||
|
|
||||||
return { client: clientid, key: key }
|
|
||||||
} else {
|
|
||||||
const clientid = path.join(keysPath, 'device_client_id_blob')
|
|
||||||
const key = path.join(keysPath, 'device_private_key')
|
|
||||||
|
|
||||||
return { client: clientid, key: key }
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user