Skip to content

Commit

Permalink
fix win32 icon
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Feb 28, 2024
1 parent 2564ed3 commit 1509c97
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/package.ex
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@ defmodule Desktop.Deployment.Package do
for bin <- [new_name, beam, erlexec] do
# Unsafe binary removal of "Erlang", needs same length!
file_replace(bin, "Erlang", binary_part(pkg.name <> <<0, 0, 0, 0, 0, 0>>, 0, 6))
cmd!(Path.join(windows_tools, "rcedit.exe"), ["/I", bin, icon])

:ok =
Mix.Tasks.Pe.Update.run(
[
"--set-icon",
icon,
"--set-manifest",
Path.join(build_root, "app.exe.manifest")
] ++ info ++ [bin]
Expand Down
Binary file added rel/win32/rcedit.exe
Binary file not shown.

0 comments on commit 1509c97

Please sign in to comment.