diff --git a/apkdroid.py b/apkdroid.py index d3c6b76..438d1f1 100644 --- a/apkdroid.py +++ b/apkdroid.py @@ -89,9 +89,15 @@ def build(repo): def publish(repo, davoptions): client = wc.Client(davoptions) - files = [f for f in os.listdir('.') if os.path.isfile(f)] - for file in files: - client.upload_sync(remote_path="/" + file, local_path=file) + files = os.listdir('repo/') + for file in files: + if os.path.isfile(file): + client.upload_sync(remote_path="/repo/" + file, local_path="repo/" +file) + + for size in ['/', '-120/', '-160/', '-240/', '-320/', '-480/', '-640/']: + files = os.listdir('repo/icons' + size) + for file in files: + client.upload_sync(remote_path="/repo/icons" + size + file, local_path="repo/icons" + size + file) def main(): check_env(repo)