Skip to content

Commit

Permalink
fix(cli): use snake_case fallback of app_name (#6788)
Browse files Browse the repository at this point in the history
fix regression introduced in 2b22f64
  • Loading branch information
amrbashir committed Apr 25, 2023
1 parent 9422490 commit 124d5c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changes/cli-libname-dashes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'cli.rs': 'patch'
'cli.js': 'patch'
---

On mobile, fix regression introduced in `tauri-cli` version `2.0.0-alpha.3` where library not found error was thrown.
3 changes: 2 additions & 1 deletion tooling/cli/src/mobile/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ use crate::{
interface::{AppInterface, AppSettings, DevProcess, Interface, Options as InterfaceOptions},
};
use anyhow::{bail, Result};
use heck::ToSnekCase;
use jsonrpsee::core::client::{Client, ClientBuilder, ClientT};
use jsonrpsee::server::{RpcModule, ServerBuilder, ServerHandle};
use jsonrpsee_client_transport::ws::WsTransportClientBuilder;
Expand Down Expand Up @@ -281,7 +282,7 @@ fn get_app(config: &TauriConfig) -> App {
let lib_name = interface
.app_settings()
.lib_name()
.unwrap_or(app_name.clone());
.unwrap_or_else(|| app_name.to_snek_case());

let raw = RawAppConfig {
name: app_name,
Expand Down

0 comments on commit 124d5c5

Please sign in to comment.