diff --git a/app/package.json b/app/package.json index 0682fdf..8d03206 100644 --- a/app/package.json +++ b/app/package.json @@ -30,5 +30,8 @@ "last 2 versions", "not dead", "not ie 11" - ] + ], + "browser":{ + "child_process": false + } } diff --git a/app/src/background.js b/app/src/background.js index 22b6a9b..8b30199 100644 --- a/app/src/background.js +++ b/app/src/background.js @@ -13,8 +13,15 @@ protocol.registerSchemesAsPrivileged([ async function createWindow() { // Create the browser window. const win = new BrowserWindow({ - width: 800, - height: 600, + width: 720, + minWidth: 720, + height: 700, + autoHideMenuBar: true, + titleBarStyle: 'hidden', + titleBarOverlay: { + color: '#1C1B1F', + symbolColor: '#8867c0' + }, webPreferences: { // Use pluginOptions.nodeIntegration, leave this alone diff --git a/app/src/components/home/information.vue b/app/src/components/home/information.vue index ff32581..239af0c 100644 --- a/app/src/components/home/information.vue +++ b/app/src/components/home/information.vue @@ -1,35 +1,84 @@ \ No newline at end of file diff --git a/app/src/plugins/scrcpy-plus-bridge.js b/app/src/plugins/scrcpy-plus-bridge.js index f4ad858..6268e09 100644 --- a/app/src/plugins/scrcpy-plus-bridge.js +++ b/app/src/plugins/scrcpy-plus-bridge.js @@ -1,5 +1,13 @@ -function execute(data) { - console.log(data) +//--- Execute Function ---// +const { exec } = require("child_process"); +function execute(cmd) { + return new Promise((resolve, reject) => { + exec(cmd, (error, stdout, stderr) => { + if (error || stderr) reject(error || stderr); + resolve(stdout); + } + ); + }); } // This file is the 'SCRCPY Plus Bridge' that bridges the electron app to the host system, be it Windows, Linux or MacOS. diff --git a/app/vue.config.js b/app/vue.config.js new file mode 100644 index 0000000..f04a076 --- /dev/null +++ b/app/vue.config.js @@ -0,0 +1,7 @@ +module.exports = { + pluginOptions: { + electronBuilder: { + nodeIntegration: true + } + } +} \ No newline at end of file