mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-08 19:04:15 +02:00
aur dist -> 'copy_icons' script
This commit is contained in:
14
aur/copy_icons.py
Normal file
14
aur/copy_icons.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
import glob
|
||||||
|
import shutil
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
output_base = sys.argv[2]
|
||||||
|
|
||||||
|
for f in glob.glob(sys.argv[1] + '/*.png'):
|
||||||
|
res = f.split('/')[-1].split('.')
|
||||||
|
dest_dir = output_base + '/' + res + '/apps'
|
||||||
|
|
||||||
|
Path(dest_dir).mkdir(parents=True, exist_ok=True)
|
||||||
|
|
||||||
|
shutil.copy(f, dest_dir + '/bauh.png')
|
||||||
Reference in New Issue
Block a user