Skip to content

Commit

Permalink
change cargo.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ChurchTao committed Jan 19, 2023
1 parent a571384 commit 6917d92
Show file tree
Hide file tree
Showing 4 changed files with 73 additions and 58 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,11 @@ jobs:

steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn updater --token=${{ secrets.GITHUB_TOKEN }}

- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- run: yarn && yarn updater --token=${{ secrets.GITHUB_TOKEN }}
- name: Deploy install.json
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
110 changes: 60 additions & 50 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ anyhow = "1.0"
parking_lot = "0.12.1"

[dependencies.tauri-plugin-sql]
git = "https://github.com/tauri-apps/tauri-plugin-sql"
branch = "release"
git = "https://github.com/tauri-apps/plugins-workspace"
branch = "dev"
features = ["sqlite"] # or "postgres", or "mysql"

[features]
Expand Down
9 changes: 6 additions & 3 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
)]

use tauri::{App, Manager, SystemTray};
use tauri_plugin_sql::{Migration, MigrationKind, TauriSql};
use tauri_plugin_sql::{Migration, MigrationKind};
use window_shadows::set_shadow;

use crate::config::Config;
Expand All @@ -20,8 +20,11 @@ fn main() {
set_up(app);
Ok(())
})
// .invoke_handler(tauri::generate_handler![greet])
.plugin(TauriSql::default().add_migrations("sqlite:lanaya_data.db", get_migrations()))
.plugin(
tauri_plugin_sql::Builder::default()
.add_migrations("sqlite:lanaya_data.db", get_migrations())
.build(),
)
.system_tray(SystemTray::new())
.on_system_tray_event(core::tray::Tray::on_system_tray_event)
.invoke_handler(tauri::generate_handler![
Expand Down

0 comments on commit 6917d92

Please sign in to comment.