2023-10-12 11:35:27 +02:00
|
|
|
import path from 'node:path'
|
2023-10-18 13:23:00 +02:00
|
|
|
|
2023-10-19 05:44:17 +02:00
|
|
|
import store from '@electron/helpers/store.js'
|
2023-10-18 13:23:00 +02:00
|
|
|
import * as configs from '@electron/configs/index.js'
|
2023-09-18 09:07:28 +02:00
|
|
|
import electron from './electron/index.js'
|
|
|
|
import adbkit from './adbkit/index.js'
|
|
|
|
import scrcpy from './scrcpy/index.js'
|
|
|
|
|
|
|
|
export default {
|
2023-10-16 05:53:08 +02:00
|
|
|
init(expose) {
|
2023-10-12 11:35:27 +02:00
|
|
|
expose('nodePath', path)
|
2023-10-18 13:23:00 +02:00
|
|
|
|
2023-10-19 05:44:17 +02:00
|
|
|
expose('appStore', store)
|
2023-10-18 13:23:00 +02:00
|
|
|
|
|
|
|
expose('electron', {
|
|
|
|
...electron(),
|
|
|
|
configs,
|
|
|
|
})
|
|
|
|
|
2023-09-18 09:07:28 +02:00
|
|
|
expose('adbkit', adbkit())
|
|
|
|
expose('scrcpy', scrcpy())
|
|
|
|
},
|
|
|
|
}
|