mirror of
https://github.com/mifi/lossless-cut.git
synced 2024-11-25 03:33:14 +01:00
fix code
This commit is contained in:
parent
32238d9d02
commit
9eafb5683b
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -113,8 +113,10 @@ jobs:
|
|||||||
|
|
||||||
- run: npx tsx script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-macos.jpeg
|
- run: npx tsx script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-macos.jpeg
|
||||||
if: startsWith(matrix.os, 'macos')
|
if: startsWith(matrix.os, 'macos')
|
||||||
|
|
||||||
- run: npx tsx script/e2e.mts 'dist/win-x64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-windows.jpeg
|
- run: npx tsx script/e2e.mts 'dist/win-x64/LosslessCut.app/Contents/MacOS/LosslessCut' screenshot-windows.jpeg
|
||||||
if: startsWith(matrix.os, 'windows')
|
if: startsWith(matrix.os, 'windows')
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
export DISPLAY=:0
|
export DISPLAY=:0
|
||||||
sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 &
|
sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 &
|
||||||
|
@ -405,10 +405,9 @@ export function focusWindow() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function quitApp() {
|
export function quitApp() {
|
||||||
// allow HTTP API to respond etc.
|
// allow HTTP API to respond etc.
|
||||||
await timers.setTimeout(1000);
|
timers.setTimeout(1000).then(() => electron.app.quit());
|
||||||
electron.app.quit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const hasDisabledNetworking = () => !!disableNetworking;
|
export const hasDisabledNetworking = () => !!disableNetworking;
|
||||||
|
Loading…
Reference in New Issue
Block a user