summaryrefslogtreecommitdiff
path: root/mix.exs
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2020-04-15 14:41:43 +0200
committerlain <lain@soykaf.club>2020-04-15 14:41:43 +0200
commit44bfb491eae00d541e6d11c8b52b5de5bc0bd34e (patch)
tree0fae87b11ceb4696075927c7f77228e59bb6926c /mix.exs
parent64c78581fe397b6d9356c52cf3f43becd2ff3b4e (diff)
parentad8630b95a691d01ec49344fd1a7578860728d63 (diff)
downloadpleroma-44bfb491eae00d541e6d11c8b52b5de5bc0bd34e.tar.gz
pleroma-44bfb491eae00d541e6d11c8b52b5de5bc0bd34e.zip
Merge branch 'develop' of git.pleroma.social:pleroma/pleroma into remake-remodel-dms
Diffstat (limited to 'mix.exs')
-rw-r--r--mix.exs13
1 files changed, 11 insertions, 2 deletions
diff --git a/mix.exs b/mix.exs
index 3e4c7cbd8..c781995e0 100644
--- a/mix.exs
+++ b/mix.exs
@@ -37,12 +37,21 @@ defmodule Pleroma.Mixfile do
pleroma: [
include_executables_for: [:unix],
applications: [ex_syslogger: :load, syslog: :load],
- steps: [:assemble, &copy_files/1, &copy_nginx_config/1]
+ steps: [:assemble, &put_otp_version/1, &copy_files/1, &copy_nginx_config/1]
]
]
]
end
+ def put_otp_version(%{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
@@ -108,7 +117,7 @@ defmodule Pleroma.Mixfile do
{:ecto_enum, "~> 1.4"},
{:ecto_sql, "~> 3.3.2"},
{:postgrex, ">= 0.13.5"},
- {:oban, "~> 0.12.1"},
+ {:oban, "~> 1.2"},
{:gettext, "~> 0.15"},
{:comeonin, "~> 4.1.1"},
{:pbkdf2_elixir, "~> 0.12.3"},