desktop-master-git2
bunsenstraat 3 months ago
parent 9a907158d5
commit dd96c5c336
  1. 6
      .circleci/config.yml
  2. 8
      apps/remixdesktop/src/main.ts

@ -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: |

@ -36,8 +36,8 @@ const windowSet = new Set<BrowserWindow>([]);
export const createWindow = async (dir?: string): Promise<void> => {
// 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<void> => {
windowSet.delete(mainWindow)
})
//if (isE2E)
// mainWindow.maximize()
if (isE2E)
mainWindow.maximize()
windowSet.add(mainWindow)
//mainWindow.webContents.openDevTools();

Loading…
Cancel
Save