-
Notifications
You must be signed in to change notification settings - Fork 5
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
9 changed files
with
52 additions
and
104 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,42 @@ | ||
'use strict'; | ||
|
||
var primitives = require('@tauri-apps/api/primitives'); | ||
|
||
// Copyright 2021 Jonas Kruckenberg | ||
// Copyright 2019-2023 Tauri Programme within The Commons Conservancy | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// SPDX-License-Identifier: MIT | ||
/** | ||
* Well known window positions. | ||
*/ | ||
exports.Position = void 0; | ||
(function (Position) { | ||
Position[Position["TopLeft"] = 0] = "TopLeft"; | ||
Position[Position["TopRight"] = 1] = "TopRight"; | ||
Position[Position["BottomLeft"] = 2] = "BottomLeft"; | ||
Position[Position["BottomRight"] = 3] = "BottomRight"; | ||
Position[Position["TopCenter"] = 4] = "TopCenter"; | ||
Position[Position["BottomCenter"] = 5] = "BottomCenter"; | ||
Position[Position["LeftCenter"] = 6] = "LeftCenter"; | ||
Position[Position["RightCenter"] = 7] = "RightCenter"; | ||
Position[Position["Center"] = 8] = "Center"; | ||
Position[Position["TrayLeft"] = 9] = "TrayLeft"; | ||
Position[Position["TrayBottomLeft"] = 10] = "TrayBottomLeft"; | ||
Position[Position["TrayRight"] = 11] = "TrayRight"; | ||
Position[Position["TrayBottomRight"] = 12] = "TrayBottomRight"; | ||
Position[Position["TrayCenter"] = 13] = "TrayCenter"; | ||
Position[Position["TrayBottomCenter"] = 14] = "TrayBottomCenter"; | ||
})(exports.Position || (exports.Position = {})); | ||
/** | ||
* Moves the `Window` to the given {@link Position} using `WindowExt.move_window()` | ||
* All positions are relative to the **current** screen. | ||
* | ||
* @param to The {@link Position} to move to. | ||
*/ | ||
async function moveWindow(to) { | ||
await primitives.invoke("plugin:positioner|move_window", { | ||
position: to, | ||
}); | ||
} | ||
|
||
exports.moveWindow = moveWindow; |
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 |
---|---|---|
|
@@ -38,4 +38,3 @@ async function moveWindow(to) { | |
} | ||
|
||
export { Position, moveWindow }; | ||
//# sourceMappingURL=index.mjs.map |
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.