summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-06-10 13:03:48 +0000
committerlain <lain@soykaf.club>2019-06-10 13:03:48 +0000
commit8fd68b8039c81a4e7b6dd1232c32fa2e736b1ea2 (patch)
tree1dc9bc9e0e0e0f5ae894a9c75ae3ca45bef49808 /mix.exs
parent3d7bb4712436ca80b840b35c39674e2f951cecbe (diff)
parentdbe4c2b7c8cfec4d8348de869a86c03015a7b7c5 (diff)
downloadpleroma-8fd68b8039c81a4e7b6dd1232c32fa2e736b1ea2.tar.gz
pleroma-8fd68b8039c81a4e7b6dd1232c32fa2e736b1ea2.zip
Merge branch 'feature/releases' into 'develop'
Releases See merge request pleroma/pleroma!1261
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs12
1 files changed, 12 insertions, 0 deletions
diff --git a/mix.exs b/mix.exs
index 9447a2e4f..a6481bab6 100644
--- a/mix.exs
+++ b/mix.exs
@@ -32,10 +32,22 @@ defmodule Pleroma.Mixfile do
],
main: "readme",
output: "priv/static/doc"
+ ],
+ releases: [
+ pleroma: [
+ include_executables_for: [:unix],
+ applications: [ex_syslogger: :load, syslog: :load],
+ steps: [:assemble, &copy_pleroma_ctl/1]
+ ]
]
]
end
+ def copy_pleroma_ctl(%{path: target_path} = release) do
+ File.cp!("./rel/pleroma_ctl", Path.join([target_path, "bin", "pleroma_ctl"]))
+ release
+ end
+
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.