Skip to content

feat: add support to TOML config file Tauri.toml, closes #4806#4813

Merged
lucasfernog merged 6 commits intodevfrom
feat/toml
Aug 2, 2022
Merged

feat: add support to TOML config file Tauri.toml, closes #4806#4813
lucasfernog merged 6 commits intodevfrom
feat/toml

Conversation

@lucasfernog
Copy link
Member

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Docs
  • New Binding issue #___
  • Code style update
  • Refactor
  • Build-related changes
  • Other, please describe:

Does this PR introduce a breaking change?

  • Yes, and the changes were approved in issue #___
  • No

Checklist

  • When resolving issues, they are referenced in the PR's title (e.g fix: remove a typo, closes #___, #___)
  • A change file is added if any packages will require a version bump due to this PR per the instructions in the readme.
  • I have added a convincing reason for adding this feature, if necessary

Other information

Example config file (inspired by the API example config):

[build]
distDir = "../dist"
devPath = "../dist"

[tauri]
macOSPrivateApi = true

[tauri.pattern]
use = "isolation"
[tauri.pattern.options]
dir = "../isolation-dist"

[tauri.bundle]
identifier = "com.tauri.api"
icon = [
  "../../.icons/32x32.png",
  "../../.icons/128x128.png",
  "../../.icons/128x128@2x.png",
  "../../.icons/icon.icns",
  "../../.icons/icon.ico"
]

[tauri.cli]
description = "Tauri API"
args = []

[tauri.updater]
active = true
pubkey = "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK"

[tauri.allowlist]
all = true

[tauri.systemTray]
iconPath = "../../.icons/tray_icon_with_transparency.png"

@lucasfernog lucasfernog requested a review from a team as a code owner July 31, 2022 23:37
@lucasfernog lucasfernog changed the title feat: add support to TOML config file tauri.conf.toml, closes #4806 feat: add support to TOML config file Tauri.toml, closes #4806 Aug 1, 2022
@lucasfernog
Copy link
Member Author

Added kebab-case aliases:

[build]
dist-dir = "../dist"
dev-path = "../dist"

[tauri]
macos-private-api = true

[tauri.pattern]
use = "isolation"
[tauri.pattern.options]
dir = "../isolation-dist"

[tauri.bundle]
identifier = "com.tauri.api"
icon = [
  "../../.icons/32x32.png",
  "../../.icons/128x128.png",
  "../../.icons/128x128@2x.png",
  "../../.icons/icon.icns",
  "../../.icons/icon.ico"
]

[tauri.cli]
description = "Tauri API"
args = []

[tauri.updater]
active = true
pubkey = "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDE5QzMxNjYwNTM5OEUwNTgKUldSWTRKaFRZQmJER1h4d1ZMYVA3dnluSjdpN2RmMldJR09hUFFlZDY0SlFqckkvRUJhZDJVZXAK"

[tauri.allowlist]
all = true

[tauri.system-tray]
icon-path = "../../.icons/tray_icon_with_transparency.png"

@lucasfernog lucasfernog merged commit ae83d00 into dev Aug 2, 2022
@lucasfernog lucasfernog deleted the feat/toml branch August 2, 2022 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant