Skip to content

Commit

Permalink
chemin absolu vers dart
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisdeguet committed Oct 17, 2024
1 parent 9429055 commit 9d3716c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scriptsharp/ScriptSharp/Utils/UtilsFirebase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ public static void InstallFirebase()
}
public static void InstallFlutterFire()
{
Utils.RunCommand("dart pub global activate flutterfire_cli");
Utils.RunCommand(UtilsFlutter.PathToDart()+" pub global activate flutterfire_cli");
}
}
7 changes: 7 additions & 0 deletions scriptsharp/ScriptSharp/Utils/UtilsFlutter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ public static string PathToFlutter()
Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
"flutter", "bin", "flutter");
}

public static string PathToDart()
{
return Path.Combine(
Environment.GetFolderPath(Environment.SpecialFolder.Desktop),
"flutter", "bin", "dart");
}
}

0 comments on commit 9d3716c

Please sign in to comment.