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: steps:
- run: - run:
name: Restart local mstsc 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 background: true
shell: powershell.exe 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: - run:
name: Get screen info name: Get screen info
command: | command: |

@ -36,8 +36,8 @@ const windowSet = new Set<BrowserWindow>([]);
export const createWindow = async (dir?: string): Promise<void> => { export const createWindow = async (dir?: string): Promise<void> => {
// Create the browser window. // Create the browser window.
const mainWindow = new BrowserWindow({ const mainWindow = new BrowserWindow({
width: 1280,// (isE2E ? 3840 : screen.getPrimaryDisplay().size.width * 0.8), width: 2560,// (isE2E ? 3840 : screen.getPrimaryDisplay().size.width * 0.8),
height: 720, //(isE2E ? 2160 : screen.getPrimaryDisplay().size.height * 0.8), height: 1140, //(isE2E ? 2160 : screen.getPrimaryDisplay().size.height * 0.8),
frame: true, frame: true,
webPreferences: { webPreferences: {
preload: path.join(__dirname, 'preload.js') preload: path.join(__dirname, 'preload.js')
@ -66,8 +66,8 @@ export const createWindow = async (dir?: string): Promise<void> => {
windowSet.delete(mainWindow) windowSet.delete(mainWindow)
}) })
//if (isE2E) if (isE2E)
// mainWindow.maximize() mainWindow.maximize()
windowSet.add(mainWindow) windowSet.add(mainWindow)
//mainWindow.webContents.openDevTools(); //mainWindow.webContents.openDevTools();

Loading…
Cancel
Save