fix(extension): compute version name

remotes/origin/HEAD v1.9.0
Emmm Monster 3 years ago
parent d3898161b9
commit 216ff4021c
No known key found for this signature in database
GPG Key ID: C98279C83FB50DB9

@ -15,6 +15,9 @@ const manifest = JSON.parse(manifestRaw)
const pkgRaw = fs.readFileSync("./package.json", "utf-8")
const pkg = JSON.parse(pkgRaw)
manifest["version"] = pkg["version"]
ver_str = pkg["version"]
if (ver_str.startsWith("v")) ver_str = ver_str.slice(1)
manifest["version"] = ver_str
fs.writeFileSync("./dist/manifest.json", JSON.stringify(manifest), "utf-8")
console.log("Write: manifest.json")

Loading…
Cancel
Save