1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-01-19 05:27:57 +00: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 19:06:20 +00:00
const fs = require('fs');
fs.writeFileSync(
2023-06-22 09:37:35 +00:00
__dirname + '/version.txt',
JSON.parse(
2023-06-22 09:37:35 +00:00
fs.readFileSync(__dirname + '/../wails.json')
).info.productVersion
);