diff --git a/README.md b/README.md index 20b4cedf..06f31349 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,9 @@ SOFTWARE. 6. A. On windows run "bin\build.bat" B. On linux run "bin\build-linux.sh" C. On linux run "bin\build-mac.sh" +7. Copy the files in 4coder-non-source/dist_files into the build folder created, you'll need at least the fonts folder. You only have to do this once +Note: If you need to extend the 4ed api, you can run "bin\build_full.bat". # Notes on Major Issues diff --git a/bin/4ed_build.cpp b/bin/4ed_build.cpp index 986541e0..1cfc05f5 100644 --- a/bin/4ed_build.cpp +++ b/bin/4ed_build.cpp @@ -569,6 +569,18 @@ build_main(Arena *arena, char *cdir, b32 update_local_theme, u32 flags, u32 arch fm_clear_folder(themes_folder); fm_make_folder_if_missing(arena, themes_folder); fm_copy_all(source_themes_folder, themes_folder); + + char *config_files[] = { "ship_files/bindings.4coder", + "../build/bindings.4coder", + "ship_files/mac-bindings.4coder", + "../build/mac-bindings.4coder", + "ship_files/config.4coder", + "../build//config.4coder" }; + + for(u32 i = 0; i < ArrayCount(config_files); i +=2) { + fm_copy_file(config_files[i], config_files[i + 1]); + } + } fflush(stdout); diff --git a/bin/build_full.bat b/bin/build_full.bat new file mode 100644 index 00000000..4c0d6c09 --- /dev/null +++ b/bin/build_full.bat @@ -0,0 +1,8 @@ +@echo off + +call custom\bin\build_one_time.bat 4ed_api_parser_main.cpp + +call one_time.exe 4ed_api_implementation.cpp + +call bin\build.bat +