mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-18 13:07:58 +00:00
Fixed version_to_file script
This commit is contained in:
parent
43b059a579
commit
535b474d65
@ -27,7 +27,7 @@
|
||||
# - rolens-windows-2022-arm64.zip
|
||||
#
|
||||
|
||||
node ./build/version2file.js
|
||||
node ./build/version_to_file.js
|
||||
version=$(<./build/version.txt)
|
||||
|
||||
mkdir bundle
|
||||
|
@ -3,7 +3,9 @@
|
||||
// This script extracts the version number from wails.json in the project root
|
||||
// and writes it to version.txt
|
||||
|
||||
require('fs').writeFileSync(
|
||||
const fs = require('fs');
|
||||
|
||||
fs.writeFileSync(
|
||||
__dirname + '/version.txt',
|
||||
JSON.parse(
|
||||
fs.readFileSync(__dirname + '/../wails.json')
|
@ -18,6 +18,6 @@
|
||||
"copyright": "© Romein van Buren 2023 (GNU GPL 3.0)."
|
||||
},
|
||||
"preBuildHooks": {
|
||||
"*/*": "node ../version2file.js"
|
||||
"*/*": "node ../version_to_file.js"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user