Refactor pleroma_ctl copying to a generic function for copying files into the release dir
This commit is contained in:
parent
3d76420512
commit
a0a1361888
6
mix.exs
6
mix.exs
@ -37,14 +37,14 @@ def project do
|
|||||||
pleroma: [
|
pleroma: [
|
||||||
include_executables_for: [:unix],
|
include_executables_for: [:unix],
|
||||||
applications: [ex_syslogger: :load, syslog: :load],
|
applications: [ex_syslogger: :load, syslog: :load],
|
||||||
steps: [:assemble, ©_pleroma_ctl/1]
|
steps: [:assemble, ©_files/1]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
end
|
end
|
||||||
|
|
||||||
def copy_pleroma_ctl(%{path: target_path} = release) do
|
def copy_files(%{path: target_path} = release) do
|
||||||
File.cp!("./rel/pleroma_ctl", Path.join([target_path, "bin", "pleroma_ctl"]))
|
File.cp_r!("./rel/files", target_path)
|
||||||
release
|
release
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user