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:
13
build/version2file.js
Normal file
13
build/version2file.js
Normal 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
|
||||
);
|
Reference in New Issue
Block a user