Skip to content

Commit

Permalink
Update main script
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterain98 committed Oct 15, 2023
1 parent 0da89f4 commit 3b047fc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
12 changes: 11 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from utils import (curl, fail2ban, mysql, nginx, php, phpmyadmin, redis, cacert, acme_sh, nghttp2, postgresql, python,
httpd, apr, imagemagick, openresty, memcached, lua_nginx_module, php_plugins)
httpd, apr, imagemagick, openresty, memcached, lua_nginx_module, php_plugins, pip, tengine, xcache,
boost, github)
import json
import os

Expand All @@ -25,12 +26,21 @@ def main():
resource_list += openresty.make_cache()
resource_list += memcached.make_cache()
resource_list += lua_nginx_module.make_cache()
resource_list += pip.make_cache()
resource_list += tengine.make_cache()
resource_list += xcache.make_cache()
resource_list += boost.make_cache()
resource_list += github.download_repo_by_tag("openresty", "lua-resty-core",
"tar.gz", True)

resource_list += php_plugins.make_cache("APCU", "apcu")
resource_list += php_plugins.make_cache("gmagick", "gmagick")
resource_list += php_plugins.make_cache("imagick", "imagick")
resource_list += php_plugins.make_cache("memcache", "memcache")
resource_list += php_plugins.make_cache("mongodb", "mongodb")
resource_list += php_plugins.make_cache("swoole", "swoole")
resource_list += php_plugins.make_cache("YAF", "yaf")
resource_list += php_plugins.make_cache("xdebug", "xdebug")
with open(r"./output/resources.json", "w+") as f:
f.write(json.dumps(resource_list, indent=4))

Expand Down
2 changes: 1 addition & 1 deletion utils/tengine.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ def make_cache() -> list:
tag_tar_gz = f"https://github.com/alibaba/tengine/archive/refs/tags/{tag}.tar.gz"
resource_list.append({
"url": tag_tar_gz,
"file_name": tag_tar_gz
"file_name": f"tengine-{tag}.tar.gz"
})
return resource_list

0 comments on commit 3b047fc

Please sign in to comment.