diff options
| author | xengineering <me@xengineering.eu> | 2025-12-20 14:54:42 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2025-12-20 14:54:42 +0100 |
| commit | 5f3cd750b2867854a1e05f66312062426024f676 (patch) | |
| tree | 938ac6d5895eb3b26c498661411566ecb0690a0f | |
| parent | b9ae3f51309ff0b38e7291239a0334e8df76b9d1 (diff) | |
| download | sia-server-5f3cd750b2867854a1e05f66312062426024f676.tar sia-server-5f3cd750b2867854a1e05f66312062426024f676.tar.zst sia-server-5f3cd750b2867854a1e05f66312062426024f676.zip | |
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.
| -rw-r--r-- | configs/meson.build | 3 | ||||
| -rw-r--r-- | meson.build | 3 |
2 files changed, 6 insertions, 0 deletions
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( |
