mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-12-13 00:01:11 +01:00
37 lines
855 B
JavaScript
37 lines
855 B
JavaScript
import path from 'node:path'
|
|
|
|
import '$electron/helpers/console.js'
|
|
import electron from './electron/index.js'
|
|
import adbkit from './adbkit/index.js'
|
|
import scrcpy from './scrcpy/index.js'
|
|
import gnirehtet from './gnirehtet/index.js'
|
|
import search from './search/index.js'
|
|
import * as configs from '$electron/configs/index.js'
|
|
import store from '$electron/helpers/store.js'
|
|
import appLog from '$electron/helpers/log.js'
|
|
|
|
export default {
|
|
init(expose) {
|
|
expose('nodePath', path)
|
|
|
|
expose('appLog', appLog)
|
|
|
|
expose('appStore', store)
|
|
|
|
expose('electron', {
|
|
...electron(),
|
|
configs,
|
|
})
|
|
|
|
const adbkitExecute = adbkit()
|
|
|
|
expose('adbkit', adbkitExecute)
|
|
|
|
expose('scrcpy', scrcpy({ adbkit: adbkitExecute }))
|
|
|
|
expose('gnirehtet', gnirehtet({ adbkit: adbkitExecute }))
|
|
|
|
expose('findInPageModal', search())
|
|
},
|
|
}
|