LibreTube/.github/patch.py
2022-06-15 20:57:59 +05:30

10 lines
818 B
Python

from os import system
patchRes = ["mdpi", "hdpi", "xhdpi", "xxhdpi", "xxxhdpi"]
for res in patchRes:
system(f"rm -rf ../app/src/main/res/mipmap-{res}/ic_launcher.png")
system(f"rm -rf ../app/src/main/res/mipmap-{res}/ic_launcher_foreground.png")
system(f"rm -rf ../app/src/main/res/mipmap-{res}/ic_launcher_round.png")
system(f"curl https://libre-tube.github.io/alpha-patch/mipmap-{res}/ic_launcher.png --output ../app/src/main/res/mipmap-{res}/ic_launcher.png")
system(f"curl https://libre-tube.github.io/alpha-patch/mipmap-{res}/ic_launcher_foreground.png --output ../app/src/main/res/mipmap-{res}/ic_launcher_foreground.png")
system(f"curl https://libre-tube.github.io/alpha-patch/mipmap-{res}/ic_launcher_round.png --output ../app/src/main/res/mipmap-{res}/ic_launcher_round.png")