mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-29 06:46:03 +08:00
Add version to Mac app (#899)
This commit is contained in:
parent
048446a16b
commit
cd757f8811
2 changed files with 7 additions and 0 deletions
|
|
@ -108,6 +108,7 @@ defmodule AppBuilder.MacOS do
|
|||
options =
|
||||
Keyword.validate!(options, [
|
||||
:name,
|
||||
:version,
|
||||
:launcher_script,
|
||||
:logo_path,
|
||||
:info_plist,
|
||||
|
|
@ -150,6 +151,7 @@ defmodule AppBuilder.MacOS do
|
|||
|
||||
defp build_info_plist(options) do
|
||||
app_name = Keyword.fetch!(options, :name)
|
||||
app_version = Keyword.fetch!(options, :version)
|
||||
|
||||
url_schemes =
|
||||
"""
|
||||
|
|
@ -202,6 +204,10 @@ defmodule AppBuilder.MacOS do
|
|||
<string>#{app_name}</string>
|
||||
<key>CFBundleDisplayName</key>
|
||||
<string>#{app_name}</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>#{app_version}</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>#{app_version}</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>CFBundleIconName</key>
|
||||
|
|
|
|||
1
mix.exs
1
mix.exs
|
|
@ -127,6 +127,7 @@ defmodule Livebook.MixProject do
|
|||
|
||||
@app_options [
|
||||
name: "Livebook",
|
||||
version: @version,
|
||||
logo_path: "static/images/logo.png",
|
||||
url_schemes: ["livebook"],
|
||||
document_types: [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue