Add initial Android app support

This commit is contained in:
Rudra Saraswat 2023-04-11 10:24:31 +05:30
parent 0024d6692b
commit 9f7dee08a8
11 changed files with 306 additions and 30 deletions

View file

@ -4,6 +4,9 @@ const pty = require("node-pty");
var mainWindow, terminalWindow, ptyProcess
app.commandLine.appendSwitch('enable-transparent-visuals');
app.disableHardwareAcceleration();
function createWindow() {
mainWindow = new BrowserWindow({
minWidth: 1000,
@ -138,7 +141,9 @@ function loadTerminalWindow(title, cmd) {
app.whenReady().then(() => {
app.allowRendererProcessReuse = false
createWindow()
setTimeout(() => {
createWindow();
}, 1000);
createTerminalWindow()
ipcMain.on('create-term', (event, data) => {