X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=platform%2Fosx%2Fmake_dmg.sh;h=09ee174d23145ebb28966f3dda1779f56733e650;hb=957bca575c867b096722f7360e7cac3b90978736;hp=faf42e6359b6cdc0e6b74f470786d420c2ec20c5;hpb=dcc053a35520b01a8d9d09ac29a89906cfbb676e;p=dcpomatic.git diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh index faf42e635..09ee174d2 100644 --- a/platform/osx/make_dmg.sh +++ b/platform/osx/make_dmg.sh @@ -8,8 +8,10 @@ SYNTAX="make_dmg.sh # were found. # Use a tag if what we've built is exactly on one -version=$(git describe --tags --abbrev=0 --match=v2.*.* --exact-match 2> /dev/null | sed -e "s/^v//") -if [ "$?" != "0" ]; then +version=$(git describe --tags --abbrev=0 --match=v2.*.* --exact-match 2> /dev/null) +if [ "$?" == "0" ]; then + version=$(echo $version | sed -e "s/^v//") +else # Otherwise use - version="$(basename $(git name-rev --name-only HEAD))-$(git rev-parse --short HEAD)" fi @@ -179,6 +181,7 @@ function copy_libs { copy_lib_env libfribidi "$dest" copy_lib_env libgio "$dest" copy_lib_env libz "$dest" + copy_lib_env libdav1d "$dest" } # @param #1 directory to copy to @@ -199,6 +202,7 @@ function copy_resources { cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_playlist.icns "$dest" cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_disk.icns "$dest" cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_combiner.icns "$dest" + cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_editor.icns "$dest" cp $prefix/src/dcpomatic/graphics/osx/preferences/defaults.png "$dest" cp $prefix/src/dcpomatic/graphics/osx/preferences/defaults@2x.png "$dest" cp $prefix/src/dcpomatic/graphics/osx/preferences/kdm_email.png "$dest" @@ -241,9 +245,10 @@ function copy_resources { cp $prefix/src/dcpomatic/graphics/no_tick.png "$dest" cp -r $prefix/share/libdcp/xsd "$dest" cp -r $prefix/share/libdcp/tags "$dest" + cp -r $prefix/share/libdcp/ratings "$dest" # i18n: DCP-o-matic .mo files - for lang in de_DE es_ES fr_FR it_IT sv_SE nl_NL ru_RU pl_PL da_DK pt_PT pt_BR sk_SK cs_CZ uk_UA zh_CN tr_TR; do + for lang in de_DE es_ES fr_FR it_IT sv_SE nl_NL ru_RU pl_PL da_DK pt_PT pt_BR sk_SK cs_CZ uk_UA zh_CN tr_TR sl_SI; do mkdir -p "$dest/$lang/LC_MESSAGES" cp $prefix/src/dcpomatic/build/src/lib/mo/$lang/*.mo "$dest/$lang/LC_MESSAGES" cp $prefix/src/dcpomatic/build/src/wx/mo/$lang/*.mo "$dest/$lang/LC_MESSAGES" @@ -251,7 +256,7 @@ function copy_resources { done # i18n: wxWidgets .mo files - for lang in de es fr it sv nl ru pl da cs; do + for lang in de es fr it sv nl ru pl da cs sl; do mkdir "$dest/$lang" cp $ENV/$ARCH1/share/locale/$lang/LC_MESSAGES/wxstd.mo "$dest/$lang" done @@ -319,8 +324,12 @@ function make_dmg { local pkg="$2" local full_name="$3" local exes="$4" - tmp_dmg=dcpomatic_tmp.dmg - dmg="$full_name $version.dmg" + tmp_dmg=dcpomatic_tmp.dmg + if [ "$ARCH2" == "" ]; then + dmg="$full_name $version macOS10.8+.dmg" + else + dmg="$full_name $version macOS10.10+.dmg" + fi vol_name=DCP-o-matic-$version find "$appdir/Contents/Frameworks" -iname "*.dylib" -type f -print0 | while IFS= read -r -d '' f; do @@ -529,6 +538,16 @@ rl=("$approot/MacOS/dcpomatic2_combiner" "$approot/Frameworks/"*.dylib) relink_relative "${rl[@]}" make_dmg "$appdir" "" "DCP-o-matic Combiner" "dcpomatic2_verify openssl dcpomatic2_combiner" +# DCP-o-matic Editor +setup "DCP-o-matic 2 Editor.app" +copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_editor "$approot/MacOS" +copy $ROOT src/openssl/apps/openssl "$approot/MacOS" +copy_verify +cp $prefix/src/dcpomatic/build/platform/osx/dcpomatic2_editor.Info.plist "$approot/Info.plist" +rl=("$approot/MacOS/dcpomatic2_editor" "$approot/Frameworks/"*.dylib) +relink_relative "${rl[@]}" +make_dmg "$appdir" "" "DCP-o-matic Editor" "dcpomatic2_verify openssl dcpomatic2_editor" + # DCP-o-matic Disk Writer .app setup "DCP-o-matic 2 Disk Writer.app" copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_disk "$approot/MacOS"