Skip to content

Commit

Permalink
Merge pull request #150 from caorushizi/fix/addForm
Browse files Browse the repository at this point in the history
fix: 🐛  fix run release scripts
  • Loading branch information
caorushizi authored May 21, 2024
2 parents dd9de54 + 9dd849f commit 0ae6928
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/main/scripts/release.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
import { loadDotEnvRuntime, log, mainResolve, removeResource } from "./utils";
import { loadDotEnvRuntime, mainResolve, removeResource } from "./utils";
import * as builder from "electron-builder";
import semver from "semver";
import pkg from "../app/package.json";
import consola from "consola";

removeResource([mainResolve("release")]);

loadDotEnvRuntime();

if (semver.neq(process.env.APP_VERSION || "", pkg.version)) {
log("请先同步构建版本和发布版本");
consola.log("请先同步构建版本和发布版本");
process.exit(0);
}

Expand Down Expand Up @@ -107,7 +108,7 @@ async function start() {
config: options,
});
} catch (e) {
log(e);
consola.log(e);
}
}

Expand Down

0 comments on commit 0ae6928

Please sign in to comment.