Skip to content

Commit

Permalink
Add more complicated plist entry example to configuration documentati…
Browse files Browse the repository at this point in the history
…on (#53)

* Add doc regarding how to add dict fields to config.

* Edit docs, move example doc comment above.

* Edit docs, better description of example code.
  • Loading branch information
furby-tm committed May 8, 2024
1 parent 4409bc7 commit f9ddce9
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
# You can also define many other kinds of complex fields that you want, as an example, below
# is how you would specify a list of URL schemes (http, ftp, and so on) supported by the app,
# on macOS in this example, to allow opening your app from the URL: (ex. helloworld://open)
CFBundleURLTypes = [ { type = "dict", value = { CFBundleTypeRole = 'Viewer', CFBundleURLName = 'HelloWorld', CFBundleURLSchemes = [ 'helloworld' ] } } ]
```

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

0 comments on commit f9ddce9

Please sign in to comment.