|
|
@ -15,9 +15,11 @@ const manifest = JSON.parse(manifestRaw)
|
|
|
|
const pkgRaw = fs.readFileSync("./package.json", "utf-8")
|
|
|
|
const pkgRaw = fs.readFileSync("./package.json", "utf-8")
|
|
|
|
const pkg = JSON.parse(pkgRaw)
|
|
|
|
const pkg = JSON.parse(pkgRaw)
|
|
|
|
|
|
|
|
|
|
|
|
ver_str = pkg["version"]
|
|
|
|
verExt = pkg["version"]
|
|
|
|
if (ver_str.startsWith("v")) ver_str = ver_str.slice(1)
|
|
|
|
if (verExt.startsWith("v")) verExt = verExt.slice(1)
|
|
|
|
manifest["version"] = ver_str
|
|
|
|
if (verExt.includes("-")) verExt = verExt.split("-")[0]
|
|
|
|
|
|
|
|
manifest["version"] = `${verExt}.${pkg["ext_build"]}`
|
|
|
|
|
|
|
|
manifest["version_name"] = pkg["version"]
|
|
|
|
|
|
|
|
|
|
|
|
fs.writeFileSync("./dist/manifest.json", JSON.stringify(manifest), "utf-8")
|
|
|
|
fs.writeFileSync("./dist/manifest.json", JSON.stringify(manifest), "utf-8")
|
|
|
|
console.log("Write: manifest.json")
|
|
|
|
console.log("Write: manifest.json")
|
|
|
|