Drop the apps.json in the cwd

This commit is contained in:
decentral1se 2021-06-05 08:26:43 +02:00
parent bbab900ebc
commit b61c9410a0
No known key found for this signature in database
GPG Key ID: 92DAD76BD9567B8A
3 changed files with 3 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
*.json
*.pyc *.pyc
/.venv /.venv
__pycache__ __pycache__

View File

@ -33,7 +33,6 @@ REPOS_TO_SKIP = (
"swarm-cronjob", "swarm-cronjob",
) )
YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq") YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq")
SCRIPT_PATH = Path(__file__).absolute().parent
log = getLogger(__name__) log = getLogger(__name__)
basicConfig() basicConfig()

View File

@ -7,7 +7,7 @@
# https://apps.coopcloud.tech # https://apps.coopcloud.tech
from json import dump from json import dump
from os import chdir, listdir from os import chdir, getcwd, listdir
from os.path import basename from os.path import basename
from re import findall, search from re import findall, search
from subprocess import DEVNULL from subprocess import DEVNULL
@ -17,7 +17,6 @@ from requests import get
from abralib import ( from abralib import (
CLONES_PATH, CLONES_PATH,
REPOS_TO_SKIP, REPOS_TO_SKIP,
SCRIPT_PATH,
YQ_PATH, YQ_PATH,
_run_cmd, _run_cmd,
clone_all_apps, clone_all_apps,
@ -198,7 +197,7 @@ def main():
repos_json = get_repos_json() repos_json = get_repos_json()
clone_all_apps(repos_json) clone_all_apps(repos_json)
target = f"{SCRIPT_PATH}/../deploy/apps.coopcloud.tech/apps.json" target = f"{getcwd()}/apps.json"
with open(target, "w", encoding="utf-8") as handle: with open(target, "w", encoding="utf-8") as handle:
dump( dump(
generate_apps_json(repos_json), generate_apps_json(repos_json),