1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-18 21:17:59 +00:00
rolens/build/version2file.js

14 lines
291 B
JavaScript

#!/usr/bin/node
// This script extracts the version number from wails.json in the project root
// and writes it to version.txt
const fs = require('fs');
fs.writeFileSync(
__dirname+'/version.txt',
JSON.parse(
fs.readFileSync(__dirname+'/../wails.json')
).info.productVersion
);