Skip to content

Commit

Permalink
Remove before hardlink
Browse files Browse the repository at this point in the history
  • Loading branch information
PoomSmart committed Mar 1, 2024
1 parent faabbaa commit ad94d67
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,18 +55,20 @@ python3 $NAME.py $HD common/${IOS_FONT_NAME}_01.ttf apple/${OUT_FONT_NAME}_01.tt
rm -f apple/$OUT_FONT_NAME.ttf
if [[ $COMPAT_OUT_FONT_NAME != '' ]]
then
rm -f apple/$COMPAT_OUT_FONT_NAME.ttf
ln apple/${OUT_FONT_NAME}_00.ttf apple/$COMPAT_OUT_FONT_NAME.ttf
fi

if [[ $MOD == 'HD' ]]
then
rm -f apple/AppleColorEmoji-160px.ttc
ln apple/${OUT_FONT_NAME}.ttc apple/AppleColorEmoji-160px.ttc
fi

otf2otc apple/${OUT_FONT_NAME}_00.ttf apple/${OUT_FONT_NAME}_01.ttf -o apple/$OUT_FONT_NAME.ttc
if [[ $COMPAT_OUT_FONT_NAME != '' ]]
then
[[ -f apple/$COMPAT_OUT_FONT_NAME.ttc ]] && rm -f apple/$COMPAT_OUT_FONT_NAME.ttc
rm -f apple/$COMPAT_OUT_FONT_NAME.ttc
ln apple/$OUT_FONT_NAME.ttc apple/$COMPAT_OUT_FONT_NAME.ttc
fi

Expand Down

0 comments on commit ad94d67

Please sign in to comment.