Skip to content

Commit

Permalink
chore: release
Browse files Browse the repository at this point in the history
  • Loading branch information
a145789 committed Jul 14, 2024
1 parent b5442ce commit 5bc2758
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions scripts/release.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
import fs from 'node:fs'
import { release } from '@varlet/release'
import fs from "node:fs"
import { release } from "@varlet/release"

async function task() {
const version = fs.readFileSync('package.json', 'utf-8').toJSON().version
const version = fs.readFileSync("package.json").toJSON().version

const tauriCOnfig = fs.readFileSync('../src-tauri/tauri.conf.json', 'utf-8').toJSON()
const tauriCOnfig = fs.readFileSync("src-tauri/tauri.conf.json").toJSON()

tauriCOnfig.version = version
fs.writeFileSync('../src-tauri/tauri.conf.json', JSON.stringify(tauriCOnfig, null, 2))
tauriCOnfig.version = version
fs.writeFileSync(
"src-tauri/tauri.conf.json",
JSON.stringify(tauriCOnfig, null, 2),
)
}

release({ task, skipNpmPublish: true })

0 comments on commit 5bc2758

Please sign in to comment.