mirror of
https://github.com/paoloanzn/free-code.git
synced 2026-10-22 02:53:27 -05:00
feat: enable voice mode in default builds
This commit is contained in:
1 parent
26d7bcc4a8
commit
98e2b98a83
2 files changed
+6
-4
No files matched your search
+5
-3
@@ -40,18 +40,20 @@ function getVersionChangelog(): string {
|
||||
)
|
||||
}
|
||||
|
||||
const features: string[] = []
|
||||
const defaultFeatures = ['VOICE_MODE']
|
||||
const featureSet = new Set(defaultFeatures)
|
||||
for (let i = 0; i < args.length; i += 1) {
|
||||
const arg = args[i]
|
||||
if (arg === '--feature' && args[i + 1]) {
|
||||
features.push(args[i + 1]!)
|
||||
featureSet.add(args[i + 1]!)
|
||||
i += 1
|
||||
continue
|
||||
}
|
||||
if (arg.startsWith('--feature=')) {
|
||||
features.push(arg.slice('--feature='.length))
|
||||
featureSet.add(arg.slice('--feature='.length))
|
||||
}
|
||||
}
|
||||
const features = [...featureSet]
|
||||
|
||||
const outfile = compile
|
||||
? dev
|
||||
|
||||
Reference in new issue
Block a user