X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=mix.exs;h=19a80ffb205a2e68e35442b82eb0474f88dd6c1b;hb=4c40ada7a5f5067f26135de5fcd97b2d97f90441;hp=0f57c4daed4981bd84594786251efdccc739d1e5;hpb=ddd04d1c52a0ce7cc44f14c736cb2271ecf279e9;p=akkoma diff --git a/mix.exs b/mix.exs index 0f57c4dae..19a80ffb2 100644 --- a/mix.exs +++ b/mix.exs @@ -4,7 +4,7 @@ defmodule Pleroma.Mixfile do def project do [ app: :pleroma, - version: version("0.9.0"), + version: version("1.0.0"), elixir: "~> 1.7", elixirc_paths: elixirc_paths(Mix.env()), compilers: [:phoenix, :gettext] ++ Mix.compilers(), @@ -37,7 +37,7 @@ defmodule Pleroma.Mixfile do pleroma: [ include_executables_for: [:unix], applications: [ex_syslogger: :load, syslog: :load], - steps: [:assemble, ©_files/1] + steps: [:assemble, ©_files/1, ©_nginx_config/1] ] ] ] @@ -48,6 +48,15 @@ defmodule Pleroma.Mixfile do release end + def copy_nginx_config(%{path: target_path} = release) do + File.cp!( + "./installation/pleroma.nginx", + Path.join([target_path, "installation", "pleroma.nginx"]) + ) + + release + end + # Configuration for the OTP application. # # Type `mix help compile.app` for more information. @@ -213,7 +222,7 @@ defmodule Pleroma.Mixfile do true <- branch_name != "master" do branch_name = String.trim(branch_name) - |> String.replace(~r/\W+/, "-") + |> String.replace(~r/[^0-9a-z\-\.]+/i, "-") "-" <> branch_name end