use `$homePath/.cargo/bin/cargo-tauri` instead of static home path

pull/19/head
Laurin Weger 4 months ago
parent bbde1fe996
commit 3a2be2a217
No known key found for this signature in database
GPG Key ID: 9B372BB0B792770F
  1. 3
      ng-app/src-tauri/gen/android/buildSrc/src/main/java/org/nextgraph/ng_app_native/kotlin/BuildTask.kt

@ -16,7 +16,8 @@ open class BuildTask : DefaultTask() {
@TaskAction
fun assemble() {
val executable = """/Users/nl/.cargo/bin/cargo-tauri""";
val homePath = System.getProperty("user.home");
val executable = "$homePath/.cargo/bin/cargo-tauri";
try {
runTauriCli(executable)
} catch (e: Exception) {

Loading…
Cancel
Save