diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3fc9ca55..48529b45 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -113,8 +113,10 @@ jobs: - run: npx tsx script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-macos.jpeg if: startsWith(matrix.os, 'macos') + - run: npx tsx script/e2e.mts 'dist/win-x64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-windows.jpeg if: startsWith(matrix.os, 'windows') + - run: | export DISPLAY=:0 sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 & diff --git a/src/main/index.ts b/src/main/index.ts index 8496bb49..b3ca2302 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -405,10 +405,9 @@ export function focusWindow() { } } -export async function quitApp() { +export function quitApp() { // allow HTTP API to respond etc. - await timers.setTimeout(1000); - electron.app.quit(); + timers.setTimeout(1000).then(() => electron.app.quit()); } export const hasDisabledNetworking = () => !!disableNetworking;