Skip to content

Commit

Permalink
feat: support CFBundleTypeRole for MacOS CFBundleURLTypes
Browse files Browse the repository at this point in the history
Closes #736
  • Loading branch information
Daniel Pereira authored and develar committed Sep 9, 2016
1 parent 5031116 commit 888581a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -556,6 +556,11 @@ export interface Protocol {
*/
readonly name: string

/*
*macOS-only* The app’s role with respect to the type. The value can be `Editor`, `Viewer`, `Shell`, or `None`. Defaults to `Editor`.
*/
readonly role?: string

/*
The schemes. e.g. `["irc", "ircs"]`.
*/
Expand Down
1 change: 1 addition & 0 deletions src/packager/mac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export async function createApp(packager: PlatformPackager<any>, appOutDir: stri
}
return {
CFBundleURLName: protocol.name,
CFBundleTypeRole: protocol.role || "Editor",
CFBundleURLSchemes: schemes.slice()
}
})
Expand Down

0 comments on commit 888581a

Please sign in to comment.