ready for merge with main

This commit is contained in:
Daniel Haller 2024-05-02 03:14:39 +02:00
parent 788c6fdfdb
commit 03bc1d5270

View File

@ -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 }
}
}