summaryrefslogtreecommitdiff
path: root/editors/vscode/files/patch-test_automation_src_electronDriver.ts
diff options
context:
space:
mode:
authorHiroki Tagato <tagattie@FreeBSD.org>2021-12-11 16:17:03 +0900
committerHiroki Tagato <tagattie@FreeBSD.org>2021-12-11 16:18:35 +0900
commit6cb4af508e8faf698b86a0a0b3f342149e50bf52 (patch)
treee135f6c8fcef63f2c81b3ce40080fa71e3bef0cb /editors/vscode/files/patch-test_automation_src_electronDriver.ts
parentdevel/psptoolchain*: Reset MAINTAINER as requested. (diff)
editors/vscode: update to 1.63.0
While here, remove BROKEN on FreeBSD 12. It build fine on FreeBSD 12 now. Changelog: https://code.visualstudio.com/updates/v1_63
Diffstat (limited to 'editors/vscode/files/patch-test_automation_src_electronDriver.ts')
-rw-r--r--editors/vscode/files/patch-test_automation_src_electronDriver.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/editors/vscode/files/patch-test_automation_src_electronDriver.ts b/editors/vscode/files/patch-test_automation_src_electronDriver.ts
new file mode 100644
index 000000000000..df804e61123d
--- /dev/null
+++ b/editors/vscode/files/patch-test_automation_src_electronDriver.ts
@@ -0,0 +1,29 @@
+--- test/automation/src/electronDriver.ts.orig 2021-12-09 06:41:16 UTC
++++ test/automation/src/electronDriver.ts
+@@ -39,7 +39,7 @@ export async function launch(codePath: string | undefi
+ '--driver', driverIPCHandle
+ ];
+
+- if (process.platform === 'linux') {
++ if (process.platform === 'linux' || process.platform === 'freebsd') {
+ args.push('--disable-gpu'); // Linux has trouble in VMs to render properly with GPU enabled
+ }
+
+@@ -148,7 +148,7 @@ function getDevElectronPath(): string {
+ switch (process.platform) {
+ case 'darwin':
+ return path.join(buildPath, 'electron', `${product.nameLong}.app`, 'Contents', 'MacOS', 'Electron');
+- case 'linux':
++ case 'linux': case 'freebsd':
+ return path.join(buildPath, 'electron', `${product.applicationName}`);
+ case 'win32':
+ return path.join(buildPath, 'electron', `${product.nameShort}.exe`);
+@@ -161,7 +161,7 @@ function getBuildElectronPath(root: string): string {
+ switch (process.platform) {
+ case 'darwin':
+ return path.join(root, 'Contents', 'MacOS', 'Electron');
+- case 'linux': {
++ case 'linux': case 'freebsd': {
+ const product = require(path.join(root, 'resources', 'app', 'product.json'));
+ return path.join(root, product.applicationName);
+ }