diff options
author | kPherox <admin@mail.kr-kp.com> | 2020-04-10 00:19:09 +0900 |
---|---|---|
committer | kPherox <admin@mail.kr-kp.com> | 2020-04-10 00:22:50 +0900 |
commit | 0e8f6d24b87812664d3bb021d17f120686cf2401 (patch) | |
tree | 615a498c51dba10404d418f09ffa890249f35e2e /mix.exs | |
parent | d37a102933dbfbb0996546b4d148bbe36fbd4220 (diff) | |
download | pleroma-0e8f6d24b87812664d3bb021d17f120686cf2401.tar.gz pleroma-0e8f6d24b87812664d3bb021d17f120686cf2401.zip |
Create OTP_VERSION file by `mix release`
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -37,12 +37,21 @@ defmodule Pleroma.Mixfile do pleroma: [ include_executables_for: [:unix], applications: [ex_syslogger: :load, syslog: :load], - steps: [:assemble, ©_files/1, ©_nginx_config/1] + steps: [:assemble, &put_files/1, ©_files/1, ©_nginx_config/1] ] ] ] end + def put_files(%{path: target_path} = release) do + File.write!( + Path.join([target_path, "OTP_VERSION"]), + Pleroma.OTPVersion.version() + ) + + release + end + def copy_files(%{path: target_path} = release) do File.cp_r!("./rel/files", target_path) release |