46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
import { URL } from "node:url";
|
|
import fs from "node:fs";
|
|
import process from "node:process";
|
|
|
|
if (!process.env.GITHUB_ENV) {
|
|
console.log("非Github WorkFlows环境,取消文件复制");
|
|
process.exit();
|
|
}
|
|
const LEGADO_ASSETS_WEB_VUE_DIR = new URL(
|
|
"../../../app/src/main/assets/web/vue",
|
|
import.meta.url,
|
|
);
|
|
const VUE_DIST_DIR = new URL("../dist", import.meta.url);
|
|
|
|
console.log("> delete", LEGADO_ASSETS_WEB_VUE_DIR.pathname);
|
|
// 删除
|
|
fs.rm(
|
|
LEGADO_ASSETS_WEB_VUE_DIR,
|
|
{
|
|
force: true,
|
|
recursive: true,
|
|
},
|
|