diff options
author | rinpatch <rinpatch@sdf.org> | 2019-06-20 11:51:16 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-06-20 11:51:16 +0300 |
commit | 45c67550f548289004506367df51a68c2782d70f (patch) | |
tree | f578d41819a3c308f5795e70459b63ae73d7fa82 /mix.exs | |
parent | 69070e641d9390a2ae46946c16f82e8b737942da (diff) | |
parent | ba584364e905531417dae2e07675dbbf60c3a007 (diff) | |
download | pleroma-45c67550f548289004506367df51a68c2782d70f.tar.gz pleroma-45c67550f548289004506367df51a68c2782d70f.zip |
Merge branch 'develop' into fix/config-gen-releases
Diffstat (limited to 'mix.exs')
-rw-r--r-- | mix.exs | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -37,14 +37,14 @@ defmodule Pleroma.Mixfile 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 @@ -209,6 +209,7 @@ defmodule Pleroma.Mixfile do branch_name = with {branch_name, 0} <- System.cmd("git", ["rev-parse", "--abbrev-ref", "HEAD"]), + branch_name <- System.get_env("PLEROMA_BUILD_BRANCH") || branch_name, true <- branch_name != "master" do branch_name = String.trim(branch_name) |