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:
13
build/version_to_file.js
Normal file
13
build/version_to_file.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