Skip to main content
Building with FAKE (F# Make)
Updated over a week ago

To add support to your FAKE build scripts, open your app’s Workflow Editor on bitrise.io and add a Script Step to your workflow.

Below you can find an example script content to perform a build with FAKE, make sure you FILL OUT THE PARAMETERS at the top of the script!

#!/bin/bashset-ex# Fill out these parameters:# You should use the same directory that you set in your build script for the FAKE dlloutput_directory=tools
fake_build_script=build.fsx
fake_target_name=fake_option_flags=# ---fake_exe="${output_directory}/FAKE/tools/fake.exe"if[!-f"${fake_exe}"];then
  printf"\e[34mInstalling FAKE\e[0m\n"
  nuget install FAKE -OutputDirectory"${output_directory}"-ExcludeVersion-NoCache-NonInteractiveficommand=("mono""${fake_exe}")if[-n"$fake_build_script"];then
  command+=("${fake_build_script}")fiif[-n"$fake_target_name"];then
  command+=("${fake_target_name}")fiif[-n"$fake_option_flags"];then
  command+=("${fake_option_flags}")fiprintf"\e[34mExecuting ${fake_build_script}\e[0m\n"$(IFS=' ';echo"${command[*]}")

Don’t forget!

  • You should update the output_directory and fake_build_script variables for your needs and you are ready to go!

  • You should set the output_directory to the same directory where your build script will search for the FAKE dlls.

Did this answer your question?