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