diff --git a/elixirkit/elixirkit_swift/Scripts/build_macos_app.sh b/elixirkit/elixirkit_swift/Scripts/build_macos_app.sh index f5db7f724..bfd6c3926 100755 --- a/elixirkit/elixirkit_swift/Scripts/build_macos_app.sh +++ b/elixirkit/elixirkit_swift/Scripts/build_macos_app.sh @@ -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 diff --git a/rel/app/macos/Info.plist b/rel/app/macos/Info.plist index 6985046de..8187098d4 100644 --- a/rel/app/macos/Info.plist +++ b/rel/app/macos/Info.plist @@ -7,7 +7,7 @@ CFBundleIdentifier dev.livebook.Livebook CFBundleVersion - 0.8.0 + $(app_version) CFBundleIconFile AppIcon LSUIElement