mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-29 14:56:26 +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 =
|
options =
|
||||||
Keyword.validate!(options, [
|
Keyword.validate!(options, [
|
||||||
:name,
|
:name,
|
||||||
|
:version,
|
||||||
:launcher_script,
|
:launcher_script,
|
||||||
:logo_path,
|
:logo_path,
|
||||||
:info_plist,
|
:info_plist,
|
||||||
|
|
@ -150,6 +151,7 @@ defmodule AppBuilder.MacOS do
|
||||||
|
|
||||||
defp build_info_plist(options) do
|
defp build_info_plist(options) do
|
||||||
app_name = Keyword.fetch!(options, :name)
|
app_name = Keyword.fetch!(options, :name)
|
||||||
|
app_version = Keyword.fetch!(options, :version)
|
||||||
|
|
||||||
url_schemes =
|
url_schemes =
|
||||||
"""
|
"""
|
||||||
|
|
@ -202,6 +204,10 @@ defmodule AppBuilder.MacOS do
|
||||||
<string>#{app_name}</string>
|
<string>#{app_name}</string>
|
||||||
<key>CFBundleDisplayName</key>
|
<key>CFBundleDisplayName</key>
|
||||||
<string>#{app_name}</string>
|
<string>#{app_name}</string>
|
||||||
|
<key>CFBundleShortVersionString</key>
|
||||||
|
<string>#{app_version}</string>
|
||||||
|
<key>CFBundleVersion</key>
|
||||||
|
<string>#{app_version}</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>AppIcon</string>
|
<string>AppIcon</string>
|
||||||
<key>CFBundleIconName</key>
|
<key>CFBundleIconName</key>
|
||||||
|
|
|
||||||
1
mix.exs
1
mix.exs
|
|
@ -127,6 +127,7 @@ defmodule Livebook.MixProject do
|
||||||
|
|
||||||
@app_options [
|
@app_options [
|
||||||
name: "Livebook",
|
name: "Livebook",
|
||||||
|
version: @version,
|
||||||
logo_path: "static/images/logo.png",
|
logo_path: "static/images/logo.png",
|
||||||
url_schemes: ["livebook"],
|
url_schemes: ["livebook"],
|
||||||
document_types: [
|
document_types: [
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue