Merge branch 'develop' of https://github.com/ciderapp/Cider into develop
This commit is contained in:
commit
9b27b90a32
4 changed files with 12 additions and 9 deletions
|
@ -16,6 +16,9 @@ jobs:
|
|||
- run:
|
||||
name: Install Dependencies
|
||||
command: yarn install --immutable
|
||||
- run:
|
||||
name: Install Playwright
|
||||
command: yarn playwright install --with-deps
|
||||
- save_cache:
|
||||
name: Save Yarn Package Cache
|
||||
key: yarn-packages-{{ checksum "yarn.lock" }}
|
||||
|
|
|
@ -1,20 +1,23 @@
|
|||
import { _electron as electron } from "playwright";
|
||||
import { test, expect } from "@playwright/test";
|
||||
import { join } from "path";
|
||||
import { resolve } from "path";
|
||||
import * as fs from "fs";
|
||||
|
||||
test("Launch electron app", async () => {
|
||||
|
||||
const paths = {
|
||||
"main": join(__dirname, "../../build/main"),
|
||||
"root": join(__dirname, "../../"),
|
||||
"mainBuild": resolve(__dirname, "../../build/"),
|
||||
"main": resolve(__dirname, "../main"),
|
||||
"root": resolve(__dirname, "../../"),
|
||||
"cwd": __dirname,
|
||||
"processcwd": process.cwd()
|
||||
}
|
||||
|
||||
console.log(paths)
|
||||
|
||||
console.log(fs.readdirSync(paths.main))
|
||||
|
||||
const electronApp = await electron.launch({ args: [paths.main], cwd: paths.root });
|
||||
const electronApp = await electron.launch({ args: ['build/index.js'], cwd: paths.root });
|
||||
|
||||
const appPath = await electronApp.evaluate(async ({ app }) => {
|
||||
// This runs in the main Electron process, parameter here is always
|
||||
|
|
|
@ -238,9 +238,6 @@ export class AppEvents {
|
|||
}
|
||||
})
|
||||
|
||||
console.log("THISHI ISFJDKIASKJDBKDJSFDLJ<KBSIJUBSDFKJBSKJDBFIKJSBDIHJNFSIHNB ")
|
||||
console.log(utils.getWindow())
|
||||
|
||||
utils.getWindow().on('show', () => {
|
||||
this.setTray(true)
|
||||
})
|
||||
|
|
|
@ -18,6 +18,6 @@
|
|||
]
|
||||
},
|
||||
"include": [
|
||||
"src/**/*"
|
||||
"src/main/*"
|
||||
]
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue