Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
WRY_ANDROID_PACKAGE
1 parent e75f0d2 commit f3f521fCopy full SHA for f3f521f
2 files changed
.changes/android-unescaped.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": "patch:bug"
3
4
+
5
+Fix `TAURI_ANDROID_PACKAGE_UNESCAPED not set` panic during compilation for Android when using an older tauri cli.
crates/tauri/build.rs
@@ -299,7 +299,8 @@ fn main() {
299
}
300
301
if let Some(project_dir) = env::var_os("TAURI_ANDROID_PROJECT_PATH").map(PathBuf::from) {
302
- let package_unescaped = env_var("TAURI_ANDROID_PACKAGE_UNESCAPED");
+ let package_unescaped = env::var("TAURI_ANDROID_PACKAGE_UNESCAPED")
303
+ .unwrap_or_else(|_| env_var("WRY_ANDROID_PACKAGE").replace('`', ""));
304
let tauri_proguard =
305
include_str!("./mobile/proguard-tauri.pro").replace("$PACKAGE", &package_unescaped);
306
std::fs::write(
0 commit comments