Skip to content

Commit

Permalink
Merge pull request #168 from caorushizi/feat/addForm
Browse files Browse the repository at this point in the history
fix: 🐛  build scripts
  • Loading branch information
caorushizi authored May 27, 2024
2 parents 36b190e + 9ec9eb8 commit 14d0867
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/main/scripts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 14d0867

Please sign in to comment.