fix(cli): remove buildSrc from Android project gitignored paths (#6702)

This commit is contained in:
Lucas Fernandes Nogueira
2023-04-13 15:29:18 -07:00
committed by GitHub
parent 9de897919a
commit ee2d3b971d
3 changed files with 7 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
---
"cli.rs": patch
"cli.js": patch
---
Do not gitignore the Android project's `buildSrc` folder by default since we removed absolute paths from it.

View File

@@ -9,8 +9,6 @@
/.idea/assetWizardSettings.xml
.DS_Store
build
/buildSrc/src/main/{{package-path}}/kotlin/BuildTask.kt
/buildSrc/src/main/{{package-path}}/kotlin/RustPlugin.kt
/captures
.externalNativeBuild
.cxx

View File

@@ -25,7 +25,7 @@ open class BuildTask : DefaultTask() {
val executable = """{{tauri-binary}}""";
try {
runTauriCli(executable)
} catch (e: Exception){
} catch (e: Exception) {
if (Os.isFamily(Os.FAMILY_WINDOWS)) {
runTauriCli("$executable.cmd")
} else {