1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2024-11-28 10:22:24 +01:00
rolens/build/version_to_file.js

14 lines
295 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 21:06:20 +02:00
const fs = require('fs');
fs.writeFileSync(
2023-06-22 11:37:35 +02:00
__dirname + '/version.txt',
JSON.parse(
2023-06-22 11:37:35 +02:00
fs.readFileSync(__dirname + '/../wails.json')
).info.productVersion
);