1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-02-26 06:19:26 +00:00
rolens/build/version2file.js

12 lines
279 B
JavaScript
Raw Normal View History

#!/usr/bin/node
// This script extracts the version number from wails.json in the project root
// and writes it to version.txt
2023-06-22 11:37:35 +02:00
require('fs').writeFileSync(
__dirname + '/version.txt',
JSON.parse(
2023-06-22 11:37:35 +02:00
fs.readFileSync(__dirname + '/../wails.json')
).info.productVersion
);