Publishing fixes
This commit is contained in:
parent
df781c1058
commit
3b3cc94203
12
apkdroid.py
12
apkdroid.py
@ -89,9 +89,15 @@ def build(repo):
|
|||||||
|
|
||||||
def publish(repo, davoptions):
|
def publish(repo, davoptions):
|
||||||
client = wc.Client(davoptions)
|
client = wc.Client(davoptions)
|
||||||
files = [f for f in os.listdir('.') if os.path.isfile(f)]
|
files = os.listdir('repo/')
|
||||||
for file in files:
|
for file in files:
|
||||||
client.upload_sync(remote_path="/" + file, local_path=file)
|
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():
|
def main():
|
||||||
check_env(repo)
|
check_env(repo)
|
||||||
|
Loading…
Reference in New Issue
Block a user