18 lines
No EOL
622 B
JavaScript
18 lines
No EOL
622 B
JavaScript
const fs = require("fs");
|
|
|
|
const pkg = JSON.parse(fs.readFileSync("package.json"));
|
|
|
|
const version = pkg.version;
|
|
|
|
const update = {
|
|
version,
|
|
downloads: {
|
|
linux: `https://github.com/presenton/presenton/releases/download/electron-v${version}/Presenton-${version}.deb`,
|
|
mac: `https://github.com/presenton/presenton/releases/download/electron-v${version}/Presenton-${version}.dmg`,
|
|
windows: `https://github.com/presenton/presenton/releases/download/electron-v${version}/Presenton-${version}.exe`
|
|
}
|
|
};
|
|
|
|
fs.writeFileSync("version.json", JSON.stringify(update, null, 2));
|
|
|
|
console.log("version.json generated"); |