Skip to content

Commit

Permalink
Merge branch 'dev' into feat/core-tracing
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog-crabnebula authored Jan 15, 2024
2 parents ff58f81 + 5cb1969 commit 5620489
Show file tree
Hide file tree
Showing 49 changed files with 4,149 additions and 1,159 deletions.
7 changes: 7 additions & 0 deletions .changes/app-bundle-files-config.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"tauri-bundler": patch:feat
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---

Add `files` object on the `tauri > bundle > macOS` configuration option.
5 changes: 5 additions & 0 deletions .changes/app-bundle-files.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri-bundler": patch:feat
---

Add `files` map on the `MacOsSettings` struct to add custom files to the `.app` bundle.
7 changes: 7 additions & 0 deletions .changes/bundler-rpm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"tauri-bundler": 'patch:enhance'
"tauri-cli": 'patch:enhance'
"@tauri-apps/cli": 'patch:enhance'
---

Add RPM packaging
6 changes: 0 additions & 6 deletions .changes/cli-hook-env-vars.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changes/cli-hook-invalid-target-triple-env-vars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tauri-cli': 'patch:bug'
'@tauri-apps/cli': 'patch:bug'
---

Prevent `Invalid target triple` warnings and correctly set `TAURI_ENV_` vars when target triple contains 4 components.
9 changes: 9 additions & 0 deletions .changes/cli-hooks-env-vars-breaking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
'tauri-cli': 'patch:breaking'
'@tauri-apps/cli': 'patch:breaking'
---

Removed `TAURI_ENV_PLATFORM_TYPE` which will not be set for CLI hook commands anymore, use `TAURI_ENV_PLATFORM` instead. Also Changed value of `TAURI_ENV_PLATFORM` and `TAURI_ENV_ARCH` values to match the target triple more accurately:

- `darwin` and `androideabi` are no longer replaced with `macos` and `android` in `TAURI_ENV_PLATFORM`.
- `i686` and `i586` are no longer replaced with `x86` in `TAURI_ENV_ARCH`.
5 changes: 5 additions & 0 deletions .changes/fix-mock-tauri-internals.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@tauri-apps/api': 'patch:bug'
---

`mockIPC` and `mockWindows` no longer crash if `window.__TAURI_INTERNALS__` is undefined.
6 changes: 6 additions & 0 deletions .changes/migrate-tauri-build-version.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-cli": patch:feat
"@tauri-apps/cli": patch:feat
---

Include tauri-build on the migration script.
5 changes: 5 additions & 0 deletions .changes/on-download-hook.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"tauri": patch:feat
---

Added `WindowBuilder::on_download` to handle download request events.
6 changes: 6 additions & 0 deletions .changes/runevent-filedrop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'tauri': 'patch:bug'
'tauri-runtime-wry': 'patch'
---

Fix `RunEvent::WindowEvent(event: WindowEvent::FileDrop(FileDropEvent))` never triggered and always prevent default OS behavior when `disable_file_drop_handler` is not used.
6 changes: 6 additions & 0 deletions .changes/runtime-on-download-hooks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"tauri-runtime": patch:feat
"tauri-runtime-wry": patch:feat
---

Added download event closure via `PendingWindow::download_handler`.
4 changes: 0 additions & 4 deletions .github/workflows/covector-version-or-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ jobs:
contains(steps.covector.outputs.packagesPublished, '@tauri-apps/cli')
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-js-cli
client-payload: >-
{"releaseId": "${{ steps.covector.outputs['-tauri-apps-cli-releaseId'] }}" }
Expand All @@ -130,6 +128,4 @@ jobs:
contains(steps.covector.outputs.packagesPublished, 'tauri-cli')
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.ORG_TAURI_BOT_PAT }}
repository: tauri-apps/tauri
event-type: publish-clirs
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ npm create tauri-app@latest

The list of Tauri's features includes, but is not limited to:

- Built-in app bundler to create app bundles in formats like `.app`, `.dmg`, `.deb`, `.AppImage` and Windows installers like `.exe` (via NSIS) and `.msi` (via WiX).
- Built-in app bundler to create app bundles in formats like `.app`, `.dmg`, `.deb`, `.rpm`, `.AppImage` and Windows installers like `.exe` (via NSIS) and `.msi` (via WiX).
- Built-in self updater (desktop only)
- System tray icons
- Native notifications
Expand Down
4 changes: 1 addition & 3 deletions core/tauri-config-schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ edition = "2021"
publish = false

[build-dependencies]
tauri-utils = { version = "2.0.0-alpha.4", features = [
"schema",
], path = "../tauri-utils" }
tauri-utils = { features = ["schema"], path = "../tauri-utils" }
schemars = { version = "0.8", features = ["url", "preserve_order"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
Expand Down
94 changes: 93 additions & 1 deletion core/tauri-config-schema/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@
"icon": [],
"identifier": "",
"macOS": {
"files": {},
"minimumSystemVersion": "10.13"
},
"rpm": {
"epoch": 0,
"files": {},
"release": "1"
},
"targets": "all",
"updater": {
"active": false,
Expand Down Expand Up @@ -203,8 +209,14 @@
"icon": [],
"identifier": "",
"macOS": {
"files": {},
"minimumSystemVersion": "10.13"
},
"rpm": {
"epoch": 0,
"files": {},
"release": "1"
},
"targets": "all",
"updater": {
"active": false,
Expand Down Expand Up @@ -933,7 +945,7 @@
"type": "boolean"
},
"targets": {
"description": "The bundle targets, currently supports [\"deb\", \"appimage\", \"nsis\", \"msi\", \"app\", \"dmg\", \"updater\"] or \"all\".",
"description": "The bundle targets, currently supports [\"deb\", \"rpm\", \"appimage\", \"nsis\", \"msi\", \"app\", \"dmg\", \"updater\"] or \"all\".",
"default": "all",
"allOf": [
{
Expand Down Expand Up @@ -1031,6 +1043,19 @@
}
]
},
"rpm": {
"description": "Configuration for the RPM bundle.",
"default": {
"epoch": 0,
"files": {},
"release": "1"
},
"allOf": [
{
"$ref": "#/definitions/RpmConfig"
}
]
},
"dmg": {
"description": "DMG-specific settings.",
"default": {
Expand All @@ -1056,6 +1081,7 @@
"macOS": {
"description": "Configuration for the macOS bundles.",
"default": {
"files": {},
"minimumSystemVersion": "10.13"
},
"allOf": [
Expand Down Expand Up @@ -1170,6 +1196,13 @@
"deb"
]
},
{
"description": "The RPM bundle (.rpm).",
"type": "string",
"enum": [
"rpm"
]
},
{
"description": "The AppImage bundle (.appimage).",
"type": "string",
Expand Down Expand Up @@ -1368,6 +1401,57 @@
},
"additionalProperties": false
},
"RpmConfig": {
"description": "Configuration for RPM bundles.",
"type": "object",
"properties": {
"license": {
"description": "The package's license identifier. If not set, defaults to the license from the Cargo.toml file.",
"type": [
"string",
"null"
]
},
"depends": {
"description": "The list of RPM dependencies your application relies on.",
"type": [
"array",
"null"
],
"items": {
"type": "string"
}
},
"release": {
"description": "The RPM release tag.",
"default": "1",
"type": "string"
},
"epoch": {
"description": "The RPM epoch.",
"default": 0,
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"files": {
"description": "The files to include on the package.",
"default": {},
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"desktopTemplate": {
"description": "Path to a custom desktop file Handlebars template.\n\nAvailable variables: `categories`, `comment` (optional), `exec`, `icon` and `name`.",
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
},
"DmgConfig": {
"description": "Configuration for Apple Disk Image (.dmg) bundles.\n\nSee more: https://tauri.app/v1/api/config#dmgconfig",
"type": "object",
Expand Down Expand Up @@ -1489,6 +1573,14 @@
"type": "string"
}
},
"files": {
"description": "The files to include in the application relative to the Contents directory.",
"default": {},
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"minimumSystemVersion": {
"description": "A version string indicating the minimum macOS X version that the bundled application supports. Defaults to `10.13`.\n\nSetting it to `null` completely removes the `LSMinimumSystemVersion` field on the bundle's `Info.plist` and the `MACOSX_DEPLOYMENT_TARGET` environment variable.\n\nAn empty string is considered an invalid value so the default value is used.",
"default": "10.13",
Expand Down
Loading

0 comments on commit 5620489

Please sign in to comment.