-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(updater): Use escaped installer path to start the nsis updater (#…
…727) Port of v1 change: tauri-apps/tauri#7956 Committed via a GitHub action: https://github.com/tauri-apps/plugins-workspace/actions/runs/6877612128 Co-authored-by: amrbashir <[email protected]>
- Loading branch information
Showing
10 changed files
with
62 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
'use strict'; | ||
|
||
var primitives = require('@tauri-apps/api/primitives'); | ||
|
||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-License-Identifier: MIT | ||
/** | ||
* Read and write to the system clipboard. | ||
* | ||
* @module | ||
*/ | ||
/** | ||
* Writes plain text to the clipboard. | ||
* @example | ||
* ```typescript | ||
* import { writeText, readText } from '@tauri-apps/plugin-clipboard-manager'; | ||
* await writeText('Tauri is awesome!'); | ||
* assert(await readText(), 'Tauri is awesome!'); | ||
* ``` | ||
* | ||
* @returns A promise indicating the success or failure of the operation. | ||
* | ||
* @since 2.0.0 | ||
*/ | ||
async function writeText(text, opts) { | ||
return primitives.invoke("plugin:clipboard|write", { | ||
data: { | ||
plainText: { | ||
label: opts?.label, | ||
text, | ||
}, | ||
}, | ||
}); | ||
} | ||
/** | ||
* Gets the clipboard content as plain text. | ||
* @example | ||
* ```typescript | ||
* import { readText } from '@tauri-apps/plugin-clipboard-manager'; | ||
* const clipboardText = await readText(); | ||
* ``` | ||
* @since 2.0.0 | ||
*/ | ||
async function readText() { | ||
const kind = await primitives.invoke("plugin:clipboard|read"); | ||
return kind.plainText.text; | ||
} | ||
|
||
exports.readText = readText; | ||
exports.writeText = writeText; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-License-Identifier: MIT | ||
|
||
import { createConfig } from "../../shared/rollup.config.js"; | ||
|
||
export default createConfig(); |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.