escrcpy/electron/exposes/index.js
2023-10-19 11:44:17 +08:00

24 lines
486 B
JavaScript

import path from 'node:path'
import store from '@electron/helpers/store.js'
import * as configs from '@electron/configs/index.js'
import electron from './electron/index.js'
import adbkit from './adbkit/index.js'
import scrcpy from './scrcpy/index.js'
export default {
init(expose) {
expose('nodePath', path)
expose('appStore', store)
expose('electron', {
...electron(),
configs,
})
expose('adbkit', adbkit())
expose('scrcpy', scrcpy())
},
}