Skip to content

Open source CapCut alternative.

TypeScript

Add macOS app icon assets

David Lec01b1a54fbeb
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.icns b/apps/Donkey/Sources/Donkey/Resources/Donkey.icns
new file mode 100644
index 00000000..62df9af5
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.icns differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_128x128.png b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_128x128.png
new file mode 100644
index 00000000..990f95e5
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_128x128.png differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected]
new file mode 100644
index 00000000..47ef0665
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_16x16.png b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_16x16.png
new file mode 100644
index 00000000..1f8e3afc
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_16x16.png differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected]
new file mode 100644
index 00000000..403571de
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_256x256.png b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_256x256.png
new file mode 100644
index 00000000..47ef0665
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_256x256.png differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected]
new file mode 100644
index 00000000..eb55ac52
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_32x32.png b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_32x32.png
new file mode 100644
index 00000000..403571de
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_32x32.png differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected]
new file mode 100644
index 00000000..43cd1dca
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_512x512.png b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_512x512.png
new file mode 100644
index 00000000..eb55ac52
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/icon_512x512.png differ
diff --git a/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected]
new file mode 100644
index 00000000..72d2f4cc
Binary files /dev/null and b/apps/Donkey/Sources/Donkey/Resources/Donkey.iconset/[email protected] differ
diff --git a/scripts/package-donkey-app.sh b/scripts/package-donkey-app.sh
index 67aa5983..88d569e9 100755
--- a/scripts/package-donkey-app.sh
+++ b/scripts/package-donkey-app.sh
@@ -26,6 +26,7 @@ BUILD_DIR="$ROOT_DIR/apps/Donkey"
EXECUTABLE="$BUILD_DIR/.build/release/Donkey"
UI_UNDERSTANDER_EXECUTABLE="$BUILD_DIR/.build/release/DonkeyUIUnderstandingSidecar"
CACHE_DIR="$BUILD_DIR/.build/package-cache"
+APP_ICON_SOURCE="$BUILD_DIR/Sources/Donkey/Resources/Donkey.icns"
RUNTIME_RUNNER_SOURCE="$ROOT_DIR/scripts/local-runtime-runners/donkey_runtime_runner.py"
mkdir -p "$CACHE_DIR/clang" "$CACHE_DIR/swiftpm" "$CACHE_DIR/home"
@@ -248,6 +249,9 @@ if [ -n "$RESOURCE_BUNDLE" ]; then
elif [ -d "$BUILD_DIR/.build/release/Donkey_Donkey.resources" ]; then
cp -R "$BUILD_DIR/.build/release/Donkey_Donkey.resources/." "$RESOURCES_DIR/"
fi
+if [ -f "$APP_ICON_SOURCE" ]; then
+ cp "$APP_ICON_SOURCE" "$RESOURCES_DIR/Donkey.icns"
+fi
SPARKLE_FRAMEWORK="$(find "$BUILD_DIR/.build" -path "*/release/Sparkle.framework" -type d | head -n 1 || true)"
if [ -z "$SPARKLE_FRAMEWORK" ]; then
@@ -335,6 +339,8 @@ cat > "$CONTENTS_DIR/Info.plist" <<PLIST
<string>Donkey</string>
<key>CFBundleDisplayName</key>
<string>Donkey</string>
+ <key>CFBundleIconFile</key>
+ <string>Donkey.icns</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>