Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfernog committed Aug 20, 2024
1 parent c3285ad commit eef9e60
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions core/tauri-build/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,15 +478,12 @@ pub fn try_build(attributes: Attributes) -> Result<()> {
if i == last {
println!("cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_APP_NAME={w}");
} else {
android_package_prefix.push_str(w);
android_package_prefix.push_str(&w.replace('_', "_1").replace('-', "_1"));
android_package_prefix.push('_');
}
}
android_package_prefix.pop();
println!(
"cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_PREFIX={}",
android_package_prefix.replace('-', "_")
);
println!("cargo:rustc-env=TAURI_ANDROID_PACKAGE_NAME_PREFIX={android_package_prefix}");

if let Some(project_dir) = var_os("TAURI_ANDROID_PROJECT_PATH").map(PathBuf::from) {
mobile::generate_gradle_files(project_dir, &config)?;
Expand Down

0 comments on commit eef9e60

Please sign in to comment.