1
0
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:
Romein van Buren 2023-06-22 21:06:20 +02:00
parent 43b059a579
commit 535b474d65
Signed by: romein
GPG Key ID: 0EFF8478ADDF6C49
3 changed files with 5 additions and 3 deletions

View File

@ -27,7 +27,7 @@
# - rolens-windows-2022-arm64.zip # - rolens-windows-2022-arm64.zip
# #
node ./build/version2file.js node ./build/version_to_file.js
version=$(<./build/version.txt) version=$(<./build/version.txt)
mkdir bundle mkdir bundle

View File

@ -3,7 +3,9 @@
// This script extracts the version number from wails.json in the project root // This script extracts the version number from wails.json in the project root
// and writes it to version.txt // and writes it to version.txt
require('fs').writeFileSync( const fs = require('fs');
fs.writeFileSync(
__dirname + '/version.txt', __dirname + '/version.txt',
JSON.parse( JSON.parse(
fs.readFileSync(__dirname + '/../wails.json') fs.readFileSync(__dirname + '/../wails.json')

View File

@ -18,6 +18,6 @@
"copyright": "© Romein van Buren 2023 (GNU GPL 3.0)." "copyright": "© Romein van Buren 2023 (GNU GPL 3.0)."
}, },
"preBuildHooks": { "preBuildHooks": {
"*/*": "node ../version2file.js" "*/*": "node ../version_to_file.js"
} }
} }