From 82c4b65607c6d18a07002d83bd34653be857632e Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Wed, 17 Feb 2021 11:33:27 +0000 Subject: [PATCH] Updated Build (markdown) --- Build.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Build.md b/Build.md index c8f48e3..87c8869 100644 --- a/Build.md +++ b/Build.md @@ -21,7 +21,7 @@ To build, you need to compile the typescript and go, and generate email template ``` git python >= 3.6 -go >= 1.15 +go >= 1.16 node.js and npm (for tsc/esbuild and mjml) upx (optional, to compress the executable) ``` @@ -29,6 +29,7 @@ The main dependencies of the program will be automatically downloaded on compila ### Makefile A Makefile is provided, which requires the `make` command. Simply clone the repository and run `make all` to grab all necessary dependencies for go/python/node, compile everything and place the executable and app data inside `build/`. You can optionally compress the executable by running `make compress` after. +* By default, `make all` will embed the program's assets inside the binary. If you want jfa-go to use external assets, use `make all-external` instead, and they will be placed next to the executable in `data/`. * If you get an error from npm regarding esbuild, this is because a precompiled binary for your system's architecture isn't available on npm. run `make all GOESBUILD=on` instead to have it compiled instead.