Skip to content

Commit

Permalink
Add support for app.env file
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Feb 27, 2024
1 parent 41cad5a commit 2564ed3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/package.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@ defmodule Desktop.Deployment.Package do
build_root = Path.join([rel_path, "..", ".."]) |> Path.expand()
File.write!(Path.join(build_root, "app.exe.manifest"), content)

# fetch extra env file
if File.exists?("rel/win32/app.env.eex") do
content = eval_eex("rel/win32/app.env.eex", rel, pkg)
File.write!(new_name <> ".env", content)
end

git_version =
with {version, 0} <- System.cmd("git", ["describe", "--tags", "--always"]) do
String.trim(version)
Expand Down

0 comments on commit 2564ed3

Please sign in to comment.