Moved stuff.

This commit is contained in:
Andrew Lalis 2023-05-17 12:44:23 +02:00
parent 00cfcda9b8
commit a7561c32c3
3 changed files with 8 additions and 2 deletions

View File

@ -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 system if you haven't already, and run `docker-compose up -d` to start the
services. services.
Run `./build-cli.d` to build and prepare a `cli` executable that you can use to
run the Gymboard CLI.
**WIP:** **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. their artifacts in a `build/` directory for deployment.
> Eventually, this functionality will be merged into *gymboard-cli*. > Eventually, this functionality will be merged into *gymboard-cli*.

View File

@ -4,7 +4,7 @@
* for use. It compiles the CLI application, and copies a "cli" executable to * for use. It compiles the CLI application, and copies a "cli" executable to
* the project's root directory for use. * the project's root directory for use.
*/ */
module build; module build_cli;
import std.stdio; import std.stdio;
import std.process; import std.process;
@ -13,6 +13,8 @@ import std.path;
int main() { int main() {
writeln("Building..."); writeln("Building...");
const mainDir = getcwd();
chdir("gymboard-cli");
auto result = executeShell("dub build --build=release"); auto result = executeShell("dub build --build=release");
if (result.status != 0) { if (result.status != 0) {
stderr.writefln!"Build failed: %d"(result.status); stderr.writefln!"Build failed: %d"(result.status);
@ -35,5 +37,6 @@ int main() {
return result.status; return result.status;
} }
} }
writeln("Done! Run ./cli to start using Gymboard CLI.");
return 0; return 0;
} }