Compare commits

...

5 Commits

Author SHA1 Message Date
github-actions[bot] 644eb448bb publish new versions (#1042)
Co-authored-by: FabianLars <FabianLars@users.noreply.github.com>
2024-03-07 12:19:11 +01:00
DK Liao 75d82868b2 docs(positioner): Update positioner readme to new tray api (#1041)
`on_system_tray_event` is now reworked into `on_tray_icon_event`
2024-03-07 12:15:46 +01:00
Fabian-Lars 685c4094c5 ci: Change paths-filter's base to v2 branch (#1043)
Currently it compares it to the default branch (v1) which makes it always run all plugin checks. While i plan to change default branches soon i still need a bit more time for this.
2024-03-07 12:11:42 +01:00
Fabian-Lars c281df8d79 ci: Move cargo target dir to /mnt (#1039)
Currently our publishing workflow fails _twice_ because it runs out of disk space. https://github.com/tauri-apps/plugins-workspace/actions/runs/8182433330/job/22373757645#step:8:8499

A month ago github changed the azure vms for public repos which resulted in a size decrease of the root partition by ~10gb (though i kinda doubt this is the sole reason because it doesn't fail once, but twice).
At the same time the /mnt partition was increased to a whopping 75gb, over 60gb of it unused, since the root partition only has ~20gb free space we'll let rust save its artifact into /mnt hoping that we're actually dealing with space issues and not something else...
2024-03-07 11:56:39 +01:00
Tony 79691e93e0 fix(store): with_store and StoreCollection become private in #1011 (#1040)
* Fix with_store become private in #1011

* Add change file
2024-03-07 11:52:33 +01:00
8 changed files with 30 additions and 5 deletions
+1
View File
@@ -11,6 +11,7 @@
".changes/fix-zbus-import.md",
".changes/http-user-agent.md",
".changes/msrv-1.75.md",
".changes/public-with-store.md",
".changes/shell-shellexcute.md",
".changes/tauri-beta-4.md",
".changes/tauri-beta-8.md",
+5
View File
@@ -0,0 +1,5 @@
---
'store': patch
---
Fix `with_store` and `StoreCollection` changed to private in #1011
@@ -46,10 +46,17 @@ jobs:
git config --global user.name "${{ github.event.pusher.name }}"
git config --global user.email "${{ github.event.pusher.email }}"
- name: Setup target dir on /mnt
run: |
sudo mkdir /mnt/target
WORKSPACE_OWNER="$(stat -c '%U:%G' "${GITHUB_WORKSPACE}")"
sudo chown -R "${WORKSPACE_OWNER}" /mnt/target
- name: covector version or publish (publish when no change files present)
uses: jbolda/covector/packages/action@covector-v0
id: covector
env:
CARGO_TARGET_DIR: /mnt/target
NODE_AUTH_TOKEN: ${{ secrets.ORG_NPM_TOKEN }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
+1
View File
@@ -42,6 +42,7 @@ jobs:
- uses: dorny/paths-filter@v2
id: filter
with:
base: v2
filters: |
tauri-plugin-authenticator:
- .github/workflows/test-rust.yml
+9 -2
View File
@@ -51,12 +51,19 @@ First you need to register the core plugin with Tauri:
`src-tauri/src/main.rs`
```rust
use tauri::tray::TrayIconBuilder;
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_positioner::init())
// This is required to get tray-relative positions to work
.on_system_tray_event(|app, event| {
tauri_plugin_positioner::on_tray_event(app, &event);
.setup(|app| {
TrayIconBuilder::new()
.on_tray_icon_event(|app, event| {
tauri_plugin_positioner::on_tray_event(app.app_handle(), &event);
})
.build(app)?;
Ok(())
})
.run(tauri::generate_context!())
.expect("error while running tauri application");
+4
View File
@@ -1,5 +1,9 @@
# Changelog
## \[2.0.0-beta.3]
- [`79691e9`](https://github.com/tauri-apps/plugins-workspace/commit/79691e93e04b820e44dce1c7d91b8865fa6ccb14)([#1040](https://github.com/tauri-apps/plugins-workspace/pull/1040)) Fix `with_store` and `StoreCollection` changed to private in #1011
## \[2.0.0-beta.2]
- [`99bea25`](https://github.com/tauri-apps/plugins-workspace/commit/99bea2559c2c0648c2519c50a18cd124dacef57b)([#1005](https://github.com/tauri-apps/plugins-workspace/pull/1005)) Update to tauri beta.8.
+1 -1
View File
@@ -1,6 +1,6 @@
[package]
name = "tauri-plugin-store"
version = "2.0.0-beta.2"
version = "2.0.0-beta.3"
description = "Simple, persistent key-value store."
authors = { workspace = true }
license = { workspace = true }
+2 -2
View File
@@ -48,7 +48,7 @@ struct ChangePayload<'a> {
value: &'a JsonValue,
}
struct StoreCollection<R: Runtime> {
pub struct StoreCollection<R: Runtime> {
stores: Mutex<HashMap<PathBuf, Store<R>>>,
frozen: bool,
@@ -56,7 +56,7 @@ struct StoreCollection<R: Runtime> {
mobile_plugin_handle: PluginHandle<R>,
}
fn with_store<R: Runtime, T, F: FnOnce(&mut Store<R>) -> Result<T>>(
pub fn with_store<R: Runtime, T, F: FnOnce(&mut Store<R>) -> Result<T>>(
app: AppHandle<R>,
collection: State<'_, StoreCollection<R>>,
path: impl AsRef<Path>,