mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-06 11:35:54 +08:00
Respect :build_installer when bundling on windows
This commit is contained in:
parent
429f6d1394
commit
8e0bd198de
1 changed files with 8 additions and 6 deletions
|
@ -68,12 +68,14 @@ defmodule AppBundler.Windows do
|
|||
end
|
||||
end
|
||||
|
||||
installer_eex_path = Path.expand("#{@templates_path}/windows/Installer.nsi.eex")
|
||||
installer_nsi_path = "#{app_path}/Installer.nsi"
|
||||
copy_template(installer_eex_path, installer_nsi_path, release: release, app_options: options)
|
||||
makensis_path = ensure_makensis()
|
||||
log(:green, "creating", Path.relative_to_cwd("#{app_path}/#{app_name}Install.exe"))
|
||||
cmd!(makensis_path, [installer_nsi_path])
|
||||
if Keyword.fetch!(options, :build_installer) do
|
||||
installer_eex_path = Path.expand("#{@templates_path}/windows/Installer.nsi.eex")
|
||||
installer_nsi_path = "#{app_path}/Installer.nsi"
|
||||
copy_template(installer_eex_path, installer_nsi_path, release: release, app_options: options)
|
||||
makensis_path = ensure_makensis()
|
||||
log(:green, "creating", Path.relative_to_cwd("#{app_path}/#{app_name}Install.exe"))
|
||||
cmd!(makensis_path, [installer_nsi_path])
|
||||
end
|
||||
|
||||
release
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue