mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-09-11 15:34:37 +08:00
Standardise desktop installer names (#1286)
This commit is contained in:
parent
1ee1394fa6
commit
81ff876b7a
3 changed files with 11 additions and 3 deletions
|
@ -11,6 +11,14 @@ defmodule AppBundler do
|
|||
end
|
||||
end
|
||||
|
||||
def target do
|
||||
case :erlang.system_info(:system_architecture) do
|
||||
'x86_64-apple-' ++ _ -> "macos-x86_64"
|
||||
'aarch64-apple-' ++ _ -> "macos-aarch64"
|
||||
'win32' -> "windows-x86_64"
|
||||
end
|
||||
end
|
||||
|
||||
def os do
|
||||
case :os.type() do
|
||||
{:unix, :darwin} -> :macos
|
||||
|
|
|
@ -98,9 +98,9 @@ defmodule AppBundler.MacOS do
|
|||
log(:green, "signing", Path.relative_to_cwd(app_dir))
|
||||
codesign(to_sign, "--options=runtime --entitlements=#{entitlements_plist_path}", notarization)
|
||||
|
||||
arch = :erlang.system_info(:system_architecture) |> to_string |> String.split("-") |> hd()
|
||||
target = AppBundler.target()
|
||||
vsn = release.version
|
||||
dmg_path = "#{Mix.Project.build_path()}/#{app_name}Install-#{vsn}-#{arch}.dmg"
|
||||
dmg_path = "#{Mix.Project.build_path()}/#{app_name}Install-#{vsn}-#{target}.dmg"
|
||||
log(:green, "creating", Path.relative_to_cwd(dmg_path))
|
||||
|
||||
cmd!(
|
||||
|
|
|
@ -8,7 +8,7 @@ app_name = Keyword.fetch!(@app_options, :name)
|
|||
|
||||
Name "<%= app_name %>"
|
||||
ManifestDPIAware true
|
||||
OutFile "<%= app_name %>Install.exe"
|
||||
OutFile "<%= app_name %>Install-<%= @release.version %>-<%= AppBundler.target() %>.exe"
|
||||
Unicode True
|
||||
InstallDir "$LOCALAPPDATA\<%= app_name %>"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue