2023-10-12 17:35:27 +08:00
|
|
|
import path from 'node:path'
|
2023-10-18 19:23:00 +08:00
|
|
|
|
2023-10-30 16:36:16 +08:00
|
|
|
import appLog from '@electron/helpers/log.js'
|
2023-10-25 18:17:19 +08:00
|
|
|
import '@electron/helpers/console.js'
|
|
|
|
|
2023-10-19 11:44:17 +08:00
|
|
|
import store from '@electron/helpers/store.js'
|
2023-10-18 19:23:00 +08:00
|
|
|
import * as configs from '@electron/configs/index.js'
|
2023-10-25 18:17:19 +08:00
|
|
|
|
2023-09-18 15:07:28 +08:00
|
|
|
import electron from './electron/index.js'
|
|
|
|
import adbkit from './adbkit/index.js'
|
|
|
|
import scrcpy from './scrcpy/index.js'
|
2023-10-30 16:36:16 +08:00
|
|
|
import gnirehtet from './gnirehtet/index.js'
|
2023-09-18 15:07:28 +08:00
|
|
|
|
|
|
|
export default {
|
2023-10-16 11:53:08 +08:00
|
|
|
init(expose) {
|
2023-10-12 17:35:27 +08:00
|
|
|
expose('nodePath', path)
|
2023-10-18 19:23:00 +08:00
|
|
|
|
2023-10-30 16:36:16 +08:00
|
|
|
expose('appLog', appLog)
|
2023-10-25 18:17:19 +08:00
|
|
|
|
2023-10-27 19:18:09 +08:00
|
|
|
expose('appStore', store)
|
|
|
|
|
2023-10-18 19:23:00 +08:00
|
|
|
expose('electron', {
|
|
|
|
...electron(),
|
|
|
|
configs,
|
|
|
|
})
|
|
|
|
|
2023-10-30 16:36:16 +08:00
|
|
|
const adbkitExecute = adbkit()
|
|
|
|
|
|
|
|
expose('adbkit', adbkitExecute)
|
|
|
|
|
2023-11-07 14:09:09 +08:00
|
|
|
expose('scrcpy', scrcpy({ adbkit: adbkitExecute }))
|
2023-10-30 16:36:16 +08:00
|
|
|
|
|
|
|
expose('gnirehtet', gnirehtet({ adbkit: adbkitExecute }))
|
2023-09-18 15:07:28 +08:00
|
|
|
},
|
|
|
|
}
|