Skip to content

Commit

Permalink
Omit scale from iOS icon in manifest to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Aug 5, 2024
1 parent 631a961 commit 2c8da2a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion appicongen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def main():
'filename': size.filename(bigsurify=args.bigsurify),
'idiom': size.idiom,
'platform': size.platform,
'scale': size.scale_str,
**({'scale': size.scale_str} if size.include_scale else {}),
'role': size.role,
'subtype': size.subtype,
}.items() if v} for template in templates for size in ICON_SIZES[template]]
Expand Down
3 changes: 2 additions & 1 deletion appicongen/size.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class IconSize:
idiom: str
size: Union[int, Fraction]
scale: int
include_scale: bool = True
aspect_ratio: Union[int, Fraction] = 1
platform: Optional[str] = None
subtype: Optional[str] = None
Expand Down Expand Up @@ -57,7 +58,7 @@ def __str__(self) -> str:

ICON_SIZES = {
'ios': [
IconSize(idiom='universal', platform='ios', size=1024, scale=1),
IconSize(idiom='universal', platform='ios', size=1024, scale=1, include_scale=False),
],
'macos': [
IconSize(idiom='mac', size=16, scale=1),
Expand Down

0 comments on commit 2c8da2a

Please sign in to comment.