Skip to content

Commit

Permalink
Add doc regarding how to add dict fields to config.
Browse files Browse the repository at this point in the history
  • Loading branch information
furby-tm committed May 8, 2024
1 parent 66d68b3 commit b8ef623
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Documentation/SwiftBundler.docc/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ icon = "icon.png"
prebuild_script = "./utils/prebuild.sh"
postbuild_script = "./utils/postbuild.sh"

[apps.HelloWorld.extra_plist_entries]
[apps.HelloWorld.plist]
commit = "{COMMIT_HASH}" # This could be any key-value pair, 'commit' is just an example
CFBundleURLTypes = [ { type = "dict", value = { CFBundleTypeRole = 'Viewer', CFBundleURLName = 'HelloWorld', CFBundleURLSchemes = [ 'helloworld' ] } } ]
# You can also define many other kinds of platform-specific fields, as an example, above is
# how you would specify a list of URL schemes (http, ftp, and so on) supported by the app,
# in this example, to allow opening your app from the URL: (ex. helloworld://open)
```

> Note: Only the `product` and `version` fields are required.
Expand Down

0 comments on commit b8ef623

Please sign in to comment.