mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-11-21 07:51:39 +01:00
Generic build version
This commit is contained in:
1 parent
fac5385d5d
commit
d70254bcdc
5 files changed
+17
-3
No files matched your search
@@ -0,0 +1,9 @@
|
||||
const path = require('path');
|
||||
const fs = require('fs');
|
||||
|
||||
const tauriConfig = fs.readFileSync(path.join(__dirname, '../src-tauri/tauri.conf.json'), 'utf8');
|
||||
if (!process.env.YAAK_VERSION) {
|
||||
throw new Error('YAAK_VERSION environment variable not set')
|
||||
}
|
||||
|
||||
console.log(tauriConfig.replaceAll('__YAAK_VERSION__', process.env.YAAK_VERSION.replace('v', '')));
|
||||
Reference in new issue
Block a user