feat: add ctx.args.FLAG_MAS

This commit is contained in:
purocean
2022-02-12 18:45:33 +08:00
parent 60bbd1d52e
commit a67a5b6629
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -192,6 +192,10 @@ if (FLAG_DISABLE_XTERM) {
delete (schema.properties as any)['server.port']
}
if (FLAG_MAS) {
delete (schema.properties as any)['updater.source']
}
/**
* Get Schema.
* @returns Schema
+1
View File
@@ -10,6 +10,7 @@ export const URL_GITHUB = 'https://github.com/purocean/yn'
export const URL_MAS = 'https://apps.apple.com/cn/app/yank-note/id1551528618'
export const FLAG_DISABLE_XTERM = false
export const FLAG_MAS = false
export const FLAG_DEMO = import.meta.env.MODE === 'demo'
export const FLAG_READONLY = $args().get('readonly') === 'true'
export const FLAG_DEBUG = import.meta.env.MODE === 'development' || $args().get('debug') === 'true'