Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion distro-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,19 @@
"armhfurl": "https://github.com/RandomCoderOrg/ubuntu-on-android/releases/download/v02-xfce4/hippo-armhf-v02-xfce4.tar.gz",
"armhfsha": "e797c8590644ffd968dc1727474b533f7bc32e22f69a5f91e519614315baf211"
}
},
"kinetic": {
"varients": ["raw"],
"raw": {
"arch": ["aarch64", "armv7l", "armv8l", "armhf"],
"Name": "udroid-kinetic-raw",
"FirendlyName": "Ubuntu Kinetic (raw)",
"aarch64url": "",
"aarch64sha": "",
"armhfurl": "",
"armhfsha": "",
"x86_64url": "",
"x86_64sha": ""
}
}

}
2 changes: 1 addition & 1 deletion gen-update-json.py → gen_data/gen-update-json.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
import json
import optparse
import utils

GIT_ROOT = os.popen("git rev-parse --show-toplevel").read().strip()
DIR = "."
Expand All @@ -23,7 +24,6 @@ def update_json_conf(file) -> None:
file = open(JSON_CONF, 'w')
json.dump(jdata, file, indent=4)


def strip_info(file):
basename = os.path.basename(file)
name = os.path.splitext(basename)[0]
Expand Down
31 changes: 31 additions & 0 deletions gen_data/utils.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
import json

def resolv_data(file,
suite: str,
varients: list,
Name: str,
FriendlyName: str,
arch: list = ["aarch64", "armv7l", "armhf", "amd64", "x86_64"]
):
file = json.load(open(file, 'r'))

# update suites list
file["suites"].append(suite)

# [WIP] create new suite
new_suite = {
f"{suite}" : {
"variants" : varients,
}
}

# register varients
for variant in varients:
new_suite[f"{suite}"][f"{variant}"] = {
"arch" : arch,
}

# exp1
# create new data(">/file", "sai", ["raw"], )