mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-01-11 22:40:26 +01:00
Don't resign SEA binary
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
const {readdirSync, cpSync} = require("node:fs");
|
||||
const path = require("node:path");
|
||||
console.log('-----> Starting copy plugins script');
|
||||
const {execSync} = require("node:child_process");
|
||||
const PLUGINS_DIR = process.env.YAAK_PLUGINS_DIR;
|
||||
if (!PLUGINS_DIR) {
|
||||
console.log("YAAK_PLUGINS_DIR is not set");
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log('Installing Yaak plugins dependencies', PLUGINS_DIR);
|
||||
execSync('npm ci', {cwd: PLUGINS_DIR});
|
||||
console.log('Building Yaak plugins', PLUGINS_DIR);
|
||||
execSync('npm run build', {cwd: PLUGINS_DIR});
|
||||
|
||||
console.log('Copying Yaak plugins to', PLUGINS_DIR);
|
||||
|
||||
const pluginsRoot = path.join(PLUGINS_DIR, 'plugins');
|
||||
for (const name of readdirSync(pluginsRoot)) {
|
||||
const dir = path.join(pluginsRoot, name);
|
||||
Reference in New Issue
Block a user