Skip to content
Snippets Groups Projects
Commit 92fc0949 authored by GyDi's avatar GyDi
Browse files

chore: post version script

parent d927209d
No related branches found
No related tags found
No related merge requests found
import fs from "fs-extra";
import { createRequire } from "module";
import { execSync } from "child_process";
const require = createRequire(import.meta.url);
// update the tauri conf version
async function resolveVersion() {
const { version } = require("../package.json");
const tauri = require("../src-tauri/tauri.conf.json");
tauri.package.version = version;
await fs.writeFile(
"./src-tauri/tauri.conf.json",
JSON.stringify(tauri, undefined, 2)
);
execSync("git add ./src-tauri/tauri.conf.json");
execSync(`git commit -m v${version} --no-verify`);
execSync(`git push`);
execSync(`git push origin v${version}`);
}
resolveVersion();
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment