Publishing fixes
This commit is contained in:
parent
df781c1058
commit
3b3cc94203
10
apkdroid.py
10
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)]
|
||||
files = os.listdir('repo/')
|
||||
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():
|
||||
check_env(repo)
|
||||
|
Loading…
Reference in New Issue
Block a user