diff --git a/README.md b/README.md index 38f3f09..5769514 100644 --- a/README.md +++ b/README.md @@ -30,8 +30,11 @@ of services that may be used by one or more services. Install docker on your system if you haven't already, and run `docker-compose up -d` to start the services. +Run `./build-cli.d` to build and prepare a `cli` executable that you can use to +run the Gymboard CLI. + **WIP:** -A `build_apps.d` script is available to try and build all projects and collect +A `build-apps.d` script is available to try and build all projects and collect their artifacts in a `build/` directory for deployment. > Eventually, this functionality will be merged into *gymboard-cli*. diff --git a/build_apps.d b/build-apps.d similarity index 100% rename from build_apps.d rename to build-apps.d diff --git a/gymboard-cli/build.d b/build-cli.d similarity index 89% rename from gymboard-cli/build.d rename to build-cli.d index a669d4e..96759bf 100755 --- a/gymboard-cli/build.d +++ b/build-cli.d @@ -4,7 +4,7 @@ * for use. It compiles the CLI application, and copies a "cli" executable to * the project's root directory for use. */ -module build; +module build_cli; import std.stdio; import std.process; @@ -13,6 +13,8 @@ import std.path; int main() { writeln("Building..."); + const mainDir = getcwd(); + chdir("gymboard-cli"); auto result = executeShell("dub build --build=release"); if (result.status != 0) { stderr.writefln!"Build failed: %d"(result.status); @@ -35,5 +37,6 @@ int main() { return result.status; } } + writeln("Done! Run ./cli to start using Gymboard CLI."); return 0; }