Files
ports/editors/vscode/files/patch-test_automation_src_code.ts
T
Luca Pizzamiglio 719fc2047b editors/vscode: Add new port
Add vscode to the portstree. the popular editor developed by Microsoft and
based on Electron.
Many thanks to the maintainer Hiroki for his very appreciated work on it.
2019-12-23 17:23:22 +00:00

21 lines
894 B
TypeScript

--- test/automation/src/code.ts.orig 2019-12-10 21:16:00 UTC
+++ test/automation/src/code.ts
@@ -24,7 +24,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`);
@@ -37,7 +37,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);
}