1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-08-24 06:47:11 +00:00

Fixed version_to_file script

This commit is contained in:
2023-06-22 21:06:20 +02:00
parent 43b059a579
commit 535b474d65
3 changed files with 5 additions and 3 deletions

13
build/version_to_file.js Normal file
View File

@ -0,0 +1,13 @@
#!/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
);