Skip to content

Commit

Permalink
expeirment: move files
Browse files Browse the repository at this point in the history
  • Loading branch information
vasfvitor committed May 1, 2024
1 parent 12f02ad commit 3251e03
Show file tree
Hide file tree
Showing 5 changed files with 1,206 additions and 16 deletions.
26 changes: 26 additions & 0 deletions src/content/docs/develop/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: Develop
description: Core concepts for developing with Tauri.
sidebar:
order: 0
label: Overview
badge:
text: WIP
variant: caution
---

import Stub from '@components/Stub.astro';

<Stub />


import { LinkCard, CardGrid } from '@astrojs/starlight/components';

<CardGrid>
<LinkCard
title="Embedding External Binaries"
href="/develop/sidecar"
/>
</CardGrid>


File renamed without changes.
6 changes: 1 addition & 5 deletions src/content/docs/guides/develop/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,4 @@ import { LinkCard, CardGrid } from '@astrojs/starlight/components';
title="Updating Dependencies"
href="/guides/develop/updating-dependencies"
/>
<LinkCard
title="Embedding External Binaries"
href="/guides/develop/sidecar"
/>
</CardGrid>
</CardGrid>
12 changes: 1 addition & 11 deletions src/content/docs/guides/upgrade-migrate/from-tauri-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Below is a summary of the changes from Tauri 1.0 to Tauri 2.0:
- `package > productName` and `package > version` moved to top-level field.
- `package` removed.
- `tauri` key renamed to `app`.
- `tauri > allowlist` removed. Refer to [Migrate Permissions](migrate-permissions).
- `tauri > allowlist` removed.
- `tauri > allowlist > protocol > assetScope` moved to `app > security > assetProtocol > scope`.
- `tauri > cli` moved to `plugins > cli`.
- `tauri > updater > active` removed.
Expand Down Expand Up @@ -1156,16 +1156,6 @@ On the JavaScript side, the `WebviewWindow` class is now exported in the `@tauri
The `onMenuClicked` function was removed, you can intercept menu events when creating a menu in JavaScript instead.
### Migrate Embedded External Binaries (Sidecar)
In Tauri v1, the external binaries and their arguments were defined in the allowlist. In v2, use the new permissions system. Read [Migrate Permissions](#migrate-permissions) for more information.
On the JavaScript side, make sure you [Migrate to Shell Plugin](#migrate-to-shell-plugin).
On the Rust side, `tauri::api::process` API has been removed. Use `tauri_plugin_shell::ShellExt` and `tauri_plugin_shell::process::CommandEvent` APIs instead. Read the [Embedding External Binaries](/guides/develop/sidecar/#running-it-from-rust) guide to see how.
The "process-command-api" features flag has been removed in v2. So running the external binaries does not require this feature to be defined in the Tauri config anymore.
### Migrate Permissions
The v1 allowlist have been rewritten to a completely new system for permissions that works for individual plugins and is much more configurable for multiwindow and remote URL support.
Expand Down
Loading

0 comments on commit 3251e03

Please sign in to comment.