summaryrefslogtreecommitdiff
path: root/configs/meson.build
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2025-12-20 14:54:42 +0100
committerxengineering <me@xengineering.eu>2025-12-20 14:54:42 +0100
commit5f3cd750b2867854a1e05f66312062426024f676 (patch)
tree938ac6d5895eb3b26c498661411566ecb0690a0f /configs/meson.build
parentb9ae3f51309ff0b38e7291239a0334e8df76b9d1 (diff)
downloadsia-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.
Diffstat (limited to 'configs/meson.build')
-rw-r--r--configs/meson.build3
1 files changed, 3 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')