From 9ec9eb86ae58cd129744cc81d1d48c9a4ce53466 Mon Sep 17 00:00:00 2001 From: caorushizi <84996057@qq.com> Date: Mon, 27 May 2024 20:47:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=20build=20scripts?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/main/scripts/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/main/scripts/index.ts b/packages/main/scripts/index.ts index aad1e2c3..27820677 100644 --- a/packages/main/scripts/index.ts +++ b/packages/main/scripts/index.ts @@ -7,7 +7,7 @@ import { browserOptions, nodeOptions, getReleaseConfig } from "./config"; import semver from "semver"; import pkg from "../app/package.json"; import * as builder from "electron-builder"; -import glob from "glob"; +import { globSync } from "glob"; import fs from "fs"; const env = Env.getInstance(); @@ -38,7 +38,7 @@ async function chmodBin() { // 遍历文件夹下的所有文件,将文件的权限设置为 777 if (isWin) return; - const files = glob.sync(mainResolve("app/bin/*")); + const files = globSync(mainResolve("app/bin/*")); for (const file of files) { fs.chmodSync(file, 0o777); }