Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.
Rust chatgptclaudeclidesktopdesktop-appelectron-alternativegeminilinuxmacosnativefierno-electronrusttauriweb-to-desktopwebsite-to-appwebviewwindowsyoutube
docs: describe --enable-drag-drop as what it actually does
Tw93274dc2cb2064
diff --git a/bin/helpers/cli-program.ts b/bin/helpers/cli-program.tsindex 6a67efad..7cb63f80 100644--- a/bin/helpers/cli-program.ts+++ b/bin/helpers/cli-program.ts@@ -207,7 +207,10 @@ ${green('|_| \\__,_|_|\\_\\___| can turn any webpage into a desktop app with.hideHelp(),).addOption(- new Option('--enable-drag-drop', 'Enable drag and drop functionality')+ new Option(+ '--enable-drag-drop',+ "Use Tauri's file-drop handler (pages stop receiving file drops)",+ ).default(DEFAULT.enableDragDrop).hideHelp(),)diff --git a/dist/cli.js b/dist/cli.jsindex c7eab994..e6a14321 100644--- a/dist/cli.js+++ b/dist/cli.js@@ -3737,7 +3737,7 @@ ${green('|_| \\__,_|_|\\_\\___| can turn any webpage into a desktop app with.addOption(new Option('--wasm', 'Enable WebAssembly support (Flutter Web, etc.)').default(DEFAULT_PAKE_OPTIONS.wasm).hideHelp())- .addOption(new Option('--enable-drag-drop', 'Enable drag and drop functionality')+ .addOption(new Option('--enable-drag-drop', "Use Tauri's file-drop handler (pages stop receiving file drops)").default(DEFAULT_PAKE_OPTIONS.enableDragDrop).hideHelp()).addOption(new Option('--keep-binary', 'Keep raw binary file alongside installer')diff --git a/docs/cli-usage.md b/docs/cli-usage.mdindex d6ed5474..e2a9f2ff 100644--- a/docs/cli-usage.md+++ b/docs/cli-usage.md@@ -491,13 +491,10 @@ pake https://flutter.dev --name FlutterApp --wasm#### [enable-drag-drop]-Enable native drag and drop functionality within the application. Default is `false`. When enabled, allows drag and drop operations like reordering items, file uploads, and other interactive drag behaviors that work in regular browsers.+Turn on Tauri's own file-drop handler for the window. Default is `false`. You do not need it for a site's drag and drop: with the default, the page itself handles dragging items to reorder them and dragging files in to upload, as it does in a browser. With the flag, Tauri takes file drops before the page sees them, so dropping a file onto an upload area or file input does nothing, and on Windows the page's HTML5 drag and drop stops working as well. Pake apps do not use the events this handler sends, so leave it off unless you have a specific reason to test it.```shell--enable-drag-drop--# Example: Package an app that requires drag-drop functionality-pake https://planka.example.com --name PlankApp --enable-drag-drop```#### [keep-binary]diff --git a/docs/cli-usage_CN.md b/docs/cli-usage_CN.mdindex baef74c9..9162bf46 100644--- a/docs/cli-usage_CN.md+++ b/docs/cli-usage_CN.md@@ -489,13 +489,10 @@ pake https://flutter.dev --name FlutterApp --wasm#### [enable-drag-drop]-启用原生拖拽支持,默认为 `false`,支持网页内元素拖拽排序及文件拖入上传等交互。+打开 Tauri 自己的文件拖放处理,默认为 `false`。网页里的拖拽不需要它,默认情况下拖动元素排序、把文件拖进来上传都由网页自己处理,和在浏览器里一样;加上这个参数后,Tauri 会先截下拖进来的文件,拖到上传区域或文件输入框上没有反应,Windows 上网页的 HTML5 拖拽也会失效。Pake 应用不使用这个处理发出的事件,没有特别需要就不要加。```shell--enable-drag-drop--# 示例:打包需要拖拽交互的应用-pake https://planka.example.com --name PlankApp --enable-drag-drop```#### [keep-binary]diff --git a/schema/pake.schema.json b/schema/pake.schema.jsonindex 5dcff2e4..f3927d83 100644--- a/schema/pake.schema.json+++ b/schema/pake.schema.json@@ -176,7 +176,7 @@},"enableDragDrop": {"type": "boolean",- "description": "Enable drag and drop.",+ "description": "Use Tauri's file-drop handler instead of the page's own drag and drop. Off by default; when on, files dropped on the page do not reach it.","default": false},"keepBinary": {