mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-09-20 10:05:57 +08:00
Don't hardcode Livebook Desktop for macOS version (#1831)
This commit is contained in:
parent
15d2b2f75e
commit
1a1ac34a3a
|
@ -2,8 +2,9 @@
|
|||
set -euo pipefail
|
||||
|
||||
app_name=$ELIXIRKIT_APP_NAME
|
||||
release_name="${ELIXIRKIT_RELEASE_NAME:-}"
|
||||
app_dir=$PWD/.build/${app_name}.app
|
||||
app_version=`cd "${ELIXIRKIT_PROJECT_DIR}" && MIX_QUIET=1 mix eval "IO.puts Mix.Project.config()[:version]"`
|
||||
release_name="${ELIXIRKIT_RELEASE_NAME:-}"
|
||||
build_args="${ELIXIRKIT_BUILD_ARGS:-}"
|
||||
|
||||
rm -rf $app_dir
|
||||
|
@ -15,6 +16,8 @@ mkdir -p $app_dir/Contents/{MacOS,Resources}
|
|||
|
||||
if [ -f Info.plist ]; then
|
||||
cp Info.plist $app_dir/Contents/Info.plist
|
||||
|
||||
plutil -replace CFBundleVersion -string "${app_version}" $app_dir/Contents/Info.plist
|
||||
fi
|
||||
|
||||
cp $target_dir/$app_name $app_dir/Contents/MacOS/$app_name
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
<key>CFBundleIdentifier</key>
|
||||
<string>dev.livebook.Livebook</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>0.8.0</string>
|
||||
<string>$(app_version)</string>
|
||||
<key>CFBundleIconFile</key>
|
||||
<string>AppIcon</string>
|
||||
<key>LSUIElement</key>
|
||||
|
|
Loading…
Reference in a new issue