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

12 lines
279 B
JavaScript

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