From 5f3cd750b2867854a1e05f66312062426024f676 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sat, 20 Dec 2025 14:54:42 +0100 Subject: Deploy default configuration The default configuration from the source tree is embedded into the executable with Go's embed package to assume the correct defaults. Furthermore it is now also part of the artifact tar archive to give users an idea how a configuration file should look like. --- configs/meson.build | 3 +++ meson.build | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 configs/meson.build diff --git a/configs/meson.build b/configs/meson.build new file mode 100644 index 0000000..98110da --- /dev/null +++ b/configs/meson.build @@ -0,0 +1,3 @@ +fs = import('fs') + +default_config = fs.copyfile(meson.current_source_dir() / 'default.json') diff --git a/meson.build b/meson.build index 0a1f27d..a2654de 100644 --- a/meson.build +++ b/meson.build @@ -3,6 +3,8 @@ project( version : '0.0.0-dev', ) +subdir('configs') + go = find_program('go', required : true) tar = find_program('tar', required : true) @@ -28,6 +30,7 @@ sia_server_linux_amd64 = custom_target( artifacts = [ sia_server_linux_amd64, + default_config, ] archive = custom_target( -- cgit v1.2.3-70-g09d2