Skip to content
Source
Sign inSign up
samwillis/jerry
Open History to see the last commit

render-app-icon.sh

15 lines694 Bytes

1#!/bin/zsh
2set -eu
3task_root="$(cd "$(dirname "$0")/.." && pwd)"
4if [[ ! -f "$task_root/build/Build/Products/Debug/ExpeditionCore.o" ]]; then
5 "$task_root/scripts/build.sh"
6fi
7mkdir -p "$task_root/build/Tools"
8xcrun swiftc -parse-as-library -I "$task_root/build/Build/Products/Debug" \
9 "$task_root/scripts/render-app-icon.swift" \
10 "$task_root/Jerry/Rendering/ExplorerRig.swift" \
11 "$task_root/Jerry/Rendering/PaintedPart.swift" \
12 "$task_root/build/Build/Products/Debug/ExpeditionCore.o" \
13 -o "$task_root/build/Tools/render-app-icon"
14"$task_root/build/Tools/render-app-icon" "$task_root"
15iconutil -c icns "$task_root/build/AppIcon.iconset" -o "$task_root/Jerry/Resources/AppIcon.icns"