Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreOlivierBrillant committed Oct 17, 2024
2 parents 0c5b77d + 44fa7df commit 4d98b56
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 4d98b56

Please sign in to comment.