Run daemon on packaged Bare runtime
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
import fs from 'node:fs';
|
||||
const [file, phrase, profile, tts] = Bare.argv.slice(2);
|
||||
let config = {};
|
||||
try { config = JSON.parse(fs.readFileSync(file, 'utf8')); } catch {}
|
||||
Object.assign(config, { wakePhrase: phrase, modelProfile: profile, ttsEnabled: tts === 'true' });
|
||||
fs.writeFileSync(file, JSON.stringify(config, null, 2) + '\n');
|
||||
Reference in New Issue
Block a user