UNPKG

@camera.ui/cloud

Version:

camera.ui cloud client package

14 lines 624 B
import fs from 'fs-extra'; import { dirname, resolve } from 'node:path'; import { fileURLToPath } from 'node:url'; import { getPlatform } from './utils.js'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename); const cloudBinaryPath = resolve(__dirname, '../binary'); const cloudFile = 'cloud' + (getPlatform() === 'win32' ? '.exe' : ''); const cloudExtractedFilePath = resolve(cloudBinaryPath, cloudFile); export const cloudPath = () => cloudExtractedFilePath; export const isCloudAvailable = () => { return fs.existsSync(cloudExtractedFilePath); }; //# sourceMappingURL=index.js.map