Fix android ng-app setup: Use `$homePath/.cargo/bin/cargo-tauri` instead of static home path #19

Merged
niko merged 1 commits from fix/ng-app/generic-cargo-path into master 6 months ago
  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 @TaskAction
fun assemble() { fun assemble() {
val executable = """/Users/nl/.cargo/bin/cargo-tauri"""; val homePath = System.getProperty("user.home");
val executable = "$homePath/.cargo/bin/cargo-tauri";
try { try {
runTauriCli(executable) runTauriCli(executable)
} catch (e: Exception) { } catch (e: Exception) {

Loading…
Cancel
Save