Skip to content

Commit

Permalink
yarn -> bun
Browse files Browse the repository at this point in the history
  • Loading branch information
awarebayes committed Nov 24, 2024
1 parent 5c19cc4 commit 2505410
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tauri-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
# You can remove the one that doesn't apply to your app to speed up the workflow a bit.

- name: install frontend dependencies
run: yarn install # change this to npm, pnpm or bun depending on which one you use.
run: bun install # change this to npm, pnpm or bun depending on which one you use.

- uses: tauri-apps/tauri-action@v0
env:
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ Automate your Nexus mod downloads using a botted Google Chrome instance. Support
- 📦 Works on top of portable chrome
- 👻 Optional headless mode operation
- 📦 Single self contained binary
- 🖥️ Optional TUI w [RataTui]()
- 🖥️ Optional [TUI](https://github.com/awarebayes/wabbaauto/tree/release/src-tauri/cli) w [RataTui](https://ratatui.rs/)



## 🚀 Quick Start Guide

Expand Down
11 changes: 5 additions & 6 deletions src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
mod schema;
use chrono::Local;
use lib_wabbaauto::{
check_nexus_login, download_modlist_status, test_downloader, AppState, DownloadManager,
check_nexus_login as ch_nexus_login, download_modlist_status, test_downloader, AppState, DownloadManager,
};
use schema::DownloadReponse;
use tauri::{async_runtime::Mutex, Emitter, Manager, State};
use tauri::{async_runtime::Mutex, Emitter, State};
use tokio::sync::watch;

#[derive(Debug, Default)]
Expand All @@ -13,8 +13,8 @@ struct AppData {
}

#[tauri::command]
async fn do_check_nexus_login() -> String {
let login_status = check_nexus_login().await;
async fn check_nexus_login() -> String {
let login_status = ch_nexus_login().await;
let ret_status = serde_json::to_string(&login_status).unwrap();
return ret_status;
}
Expand Down Expand Up @@ -109,8 +109,7 @@ pub fn run() {
.plugin(tauri_plugin_websocket::init())
.plugin(tauri_plugin_http::init())
.plugin(tauri_plugin_shell::init())
.invoke_handler(tauri::generate_handler![do_check_nexus_login])
.invoke_handler(tauri::generate_handler![run_download_thread])
.invoke_handler(tauri::generate_handler![run_download_thread, check_nexus_login])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
4 changes: 2 additions & 2 deletions src/lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const ModlistSchema = z.object({
export type Modlist = z.infer<typeof ModlistSchema>;

export const LoginStatusSchema = z.object({
loverslab: z.boolean(),
nexusmods: z.boolean(),
chrome: z.boolean(),
website: z.boolean(),
error: z.string(),
});

Expand Down

0 comments on commit 2505410

Please sign in to comment.