From e19f5cd830ab1f22f7710f9222c3a7272956969b Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Wed, 4 Sep 2024 08:17:41 +0200 Subject: [PATCH] windows --- .circleci/config.yml | 6 ++++-- apps/remixdesktop/src/main.ts | 8 ++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index ce800b258a..6f4c8a6543 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -240,10 +240,12 @@ jobs: steps: - run: name: Restart local mstsc - command: psexec64.exe -accepteula -nobanner -i 0 mstsc /v:localhost /w:3840 /h:2160 + command: psexec64.exe -accepteula -nobanner -i 0 mstsc /v:localhost /w:2560 /h:1140 background: true shell: powershell.exe - - run: name: Naive impl to wait until the screen stretches command: Start-Sleep 5 + - run: + name: Naive impl to wait until the screen stretches + command: Start-Sleep 5 - run: name: Get screen info command: | diff --git a/apps/remixdesktop/src/main.ts b/apps/remixdesktop/src/main.ts index ba222820bd..fc4663e7d1 100644 --- a/apps/remixdesktop/src/main.ts +++ b/apps/remixdesktop/src/main.ts @@ -36,8 +36,8 @@ const windowSet = new Set([]); export const createWindow = async (dir?: string): Promise => { // Create the browser window. const mainWindow = new BrowserWindow({ - width: 1280,// (isE2E ? 3840 : screen.getPrimaryDisplay().size.width * 0.8), - height: 720, //(isE2E ? 2160 : screen.getPrimaryDisplay().size.height * 0.8), + width: 2560,// (isE2E ? 3840 : screen.getPrimaryDisplay().size.width * 0.8), + height: 1140, //(isE2E ? 2160 : screen.getPrimaryDisplay().size.height * 0.8), frame: true, webPreferences: { preload: path.join(__dirname, 'preload.js') @@ -66,8 +66,8 @@ export const createWindow = async (dir?: string): Promise => { windowSet.delete(mainWindow) }) - //if (isE2E) - // mainWindow.maximize() + if (isE2E) + mainWindow.maximize() windowSet.add(mainWindow) //mainWindow.webContents.openDevTools();