Don't hardcode Livebook Desktop for macOS version (#1831)

This commit is contained in:
Wojtek Mach 2023-03-28 12:45:59 +02:00 committed by GitHub
parent 15d2b2f75e
commit 1a1ac34a3a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -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>