1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-06-28 05:25:11 +00:00

Show version number in about dialog (#28)

This commit is contained in:
2023-06-06 21:52:02 +02:00
committed by GitHub
parent 775e4d98d8
commit b29b534b2f
11 changed files with 51 additions and 8 deletions

13
build/version2file.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
);