diff --git a/Launcher/macos/publish-app.command b/Launcher/macos/publish-app.command index 129ff82..bade14d 100755 --- a/Launcher/macos/publish-app.command +++ b/Launcher/macos/publish-app.command @@ -37,6 +37,10 @@ for tool in codesign ditto install_name_tool lipo otool; do command -v "$tool" > lipo "$build_dir/$product" -verify_arch "$architecture" || fail "compiled product is not $architecture: $build_dir/$product" for asset in dsp_coef.bin initial_pipeline_cache.db cacert.pem wii_bootstrap; do [[ -e "$build_dir/$asset" ]] || fail "missing runtime asset: $build_dir/$asset"; done +script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) +icon="$script_dir/../../runtime/resources/$product.icns" +[[ -f "$icon" ]] || fail "missing app icon: $icon" + app="$output_dir/$product.app" macos="$app/Contents/MacOS" frameworks="$app/Contents/Frameworks" @@ -51,6 +55,7 @@ cat > "$app/Contents/Info.plist" <CFBundleExecutable$product CFBundleIdentifierorg.wiicompiled.$product CFBundleInfoDictionaryVersion6.0 + CFBundleIconFile$product.icns CFBundleName$product CFBundlePackageTypeAPPL CFBundleShortVersionString0.1.0 @@ -59,6 +64,7 @@ cat > "$app/Contents/Info.plist" <NSHighResolutionCapable EOF +ditto "$icon" "$resources/$product.icns" ditto "$build_dir/$product" "$macos/$product" for asset in dsp_coef.bin initial_pipeline_cache.db cacert.pem wii_bootstrap; do ditto "$build_dir/$asset" "$resources/$asset" diff --git a/runtime/resources/RetroRewind.icns b/runtime/resources/RetroRewind.icns new file mode 100644 index 0000000..559b7aa Binary files /dev/null and b/runtime/resources/RetroRewind.icns differ diff --git a/runtime/resources/WiiCompiled.icns b/runtime/resources/WiiCompiled.icns new file mode 100644 index 0000000..f91e932 Binary files /dev/null and b/runtime/resources/WiiCompiled.icns differ