diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..e6fa3d2 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/bin/sh -x + +dotnet tool restore +dotnet run --project build/Build.fsproj -- $@ \ No newline at end of file diff --git a/build/Helpers.fs b/build/Helpers.fs index 5fb9d00..ecedfeb 100644 --- a/build/Helpers.fs +++ b/build/Helpers.fs @@ -85,9 +85,9 @@ let npm = createProcess npmPath -let py = +let python = let path = - match ProcessUtils.tryFindFileOnPath "py" with + match ProcessUtils.tryFindFileOnPath "python" with | Some path -> path | None -> "py was not found in path. Please install it and make sure it's available from your path." diff --git a/build/TestTasks.fs b/build/TestTasks.fs index eb962fc..9661aa0 100644 --- a/build/TestTasks.fs +++ b/build/TestTasks.fs @@ -17,7 +17,7 @@ let runTestsDotNet = BuildTask.create "RunTestsDotnet" [clean; build;] { let runTestsPy = BuildTask.create "RunTestsPy" [clean; build;] { for test in ProjectInfo.testProjects do run dotnet $"fable {test} --lang py -o {test}/py" "" - run py $"{test}/py/main.py" "" + run python $"{test}/py/main.py" "" } let runTestsJs = BuildTask.create "RunTestsJs" [clean; build;] { diff --git a/src/Fable.Pyxpecto.fsproj b/src/Fable.Pyxpecto.fsproj index c5db758..d4de435 100644 --- a/src/Fable.Pyxpecto.fsproj +++ b/src/Fable.Pyxpecto.fsproj @@ -1,7 +1,7 @@  - net6.0 + netstandard2.0 true @@ -20,8 +20,9 @@ - - + + +