ci: set up travis build

- use seperate plugin dirs, plugins-mac, plugins-win, plugins-linux for the flash plugin to support
simultaneous win and linux build
- enable notariziation, use env vars to run on travis
- ci runs 'yarn run dist', skip docs build from ci
- pass GH_TOKEN to docker containers
- update to latest electron packages
This commit is contained in:
Ilya Kreymer
2020-06-09 18:31:37 -07:00
parent 101c4b3319
commit 1f226fe91a
7 changed files with 336 additions and 104 deletions
+20 -1
View File
@@ -32,7 +32,26 @@ const projPath = path.join(appPath, "../");
const staticContentPath = path.join(__dirname, "../");
const pluginPath = path.join(projPath, "plugins", "PepperFlashPlayer.plugin");
let pluginPath = "";
switch (process.platform) {
case 'win32':
pluginPath = path.join(projPath, "plugins-win", "pepflashplayer-x86_64.dll");
break;
case 'darwin':
pluginPath = path.join(projPath, "plugins-mac", "PepperFlashPlayer.plugin");
break;
case 'linux':
pluginPath = path.join(projPath, "plugins-mac", "libpepflashplayer.so");
break;
default:
console.log('platform unsupported: ' + process.platform);
break;
}
console.log('app path', appPath);
console.log('dir name', __dirname);