mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
feat: add ctx.args.FLAG_MAS
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user