Remove tmp dirs

This commit is contained in:
Gregory Schier
2024-07-19 16:58:55 -07:00
parent 5d3182da4c
commit 17ab201b96
2 changed files with 6 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
const path = require('node:path');
const {execSync} = require('node:child_process');
const {cpSync, mkdirSync, chmodSync, unlinkSync} = require('node:fs');
const {cpSync, mkdirSync, chmodSync, unlinkSync, rmSync} = require('node:fs');
const pluginRuntimeDir = path.join(__dirname, '..');
const destDir = path.join(__dirname, '..', '..', 'src-tauri', 'vendored', 'plugin-runtime');
const blobPath = path.join(pluginRuntimeDir, 'yaak-plugins.blob');
@@ -63,4 +63,6 @@ const key = `${process.platform}_${process.env.NODE_ARCH ?? process.arch}`;
const dstPath = path.join(destDir, DST_BIN_MAP[key]);
cpSync(tmpNodePath, dstPath);
rmSync(tmp, {recursive: true, force: true});
console.log(`Copied sea to ${dstPath}`)