mirror of
https://github.com/livebook-dev/livebook.git
synced 2025-10-09 04:57:18 +08:00
Don't hardcode Livebook Desktop for macOS version (#1831)
This commit is contained in:
parent
15d2b2f75e
commit
1a1ac34a3a
2 changed files with 5 additions and 2 deletions
|
@ -2,8 +2,9 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
app_name=$ELIXIRKIT_APP_NAME
|
app_name=$ELIXIRKIT_APP_NAME
|
||||||
release_name="${ELIXIRKIT_RELEASE_NAME:-}"
|
|
||||||
app_dir=$PWD/.build/${app_name}.app
|
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:-}"
|
build_args="${ELIXIRKIT_BUILD_ARGS:-}"
|
||||||
|
|
||||||
rm -rf $app_dir
|
rm -rf $app_dir
|
||||||
|
@ -15,6 +16,8 @@ mkdir -p $app_dir/Contents/{MacOS,Resources}
|
||||||
|
|
||||||
if [ -f Info.plist ]; then
|
if [ -f Info.plist ]; then
|
||||||
cp Info.plist $app_dir/Contents/Info.plist
|
cp Info.plist $app_dir/Contents/Info.plist
|
||||||
|
|
||||||
|
plutil -replace CFBundleVersion -string "${app_version}" $app_dir/Contents/Info.plist
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cp $target_dir/$app_name $app_dir/Contents/MacOS/$app_name
|
cp $target_dir/$app_name $app_dir/Contents/MacOS/$app_name
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<key>CFBundleIdentifier</key>
|
<key>CFBundleIdentifier</key>
|
||||||
<string>dev.livebook.Livebook</string>
|
<string>dev.livebook.Livebook</string>
|
||||||
<key>CFBundleVersion</key>
|
<key>CFBundleVersion</key>
|
||||||
<string>0.8.0</string>
|
<string>$(app_version)</string>
|
||||||
<key>CFBundleIconFile</key>
|
<key>CFBundleIconFile</key>
|
||||||
<string>AppIcon</string>
|
<string>AppIcon</string>
|
||||||
<key>LSUIElement</key>
|
<key>LSUIElement</key>
|
||||||
|
|
Loading…
Add table
Reference in a new issue