fix spm files
This commit is contained in:
+5
-5
@@ -12,10 +12,10 @@ PACKAGE_ROOT = ROOT / "packages"
|
||||
PACKAGE_DIR = PACKAGE_ROOT / "raw"
|
||||
|
||||
# main repo
|
||||
#API_ROOT = "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main"
|
||||
API_ROOT = "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main"
|
||||
|
||||
# local repo
|
||||
API_ROOT = "http://localhost:8001"
|
||||
#local repo
|
||||
#API_ROOT = "http://localhost:8001"
|
||||
|
||||
DEFAULT_VERSION = "0.0.0"
|
||||
DEFAULT_DESCRIPTION = "No description provided"
|
||||
@@ -28,7 +28,7 @@ def debug(message):
|
||||
|
||||
|
||||
def sha256(path):
|
||||
hasher = hashlib.sha256()
|
||||
hasher = hashlib.md5()
|
||||
|
||||
with open(path, "rb") as file:
|
||||
while chunk := file.read(1024 * 1024):
|
||||
@@ -122,7 +122,7 @@ def create_package(folder):
|
||||
DEFAULT_VERSION,
|
||||
),
|
||||
"hash": package_hash,
|
||||
"tarball": f"{API_ROOT}/packages/raw/{name}.tar.xz",
|
||||
"tarball": f"{API_ROOT}/packages/raw/{name}.tar.gz",
|
||||
}
|
||||
|
||||
with open(pkg_file, "w", encoding="utf-8") as file:
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"authors": [],
|
||||
"dependencies": [],
|
||||
"version": "0.0.0",
|
||||
"hash": "d83271f13ee042680f384bd78a41e61457e1b035fea4002f30ff82d6109b85e4",
|
||||
"tarball": "http://localhost:8001/packages/raw/Hypersplash.tar.xz"
|
||||
"hash": "b9949aaa204f24d69b74c38efc42af8b",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/Hypersplash.tar.gz"
|
||||
}
|
||||
|
||||
@@ -7,6 +7,6 @@
|
||||
],
|
||||
"dependencies": [],
|
||||
"version": "1.0.0",
|
||||
"hash": "e13acb28e6d7e8473d8b7b75af4e0eca10182625e76a845206ccbb0d531f48b5",
|
||||
"tarball": "http://localhost:8001/packages/raw/brainfuck.tar.xz"
|
||||
"hash": "b5b39d1f3fb742274b9cf97333cb7535",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/brainfuck.tar.gz"
|
||||
}
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
"authors": [],
|
||||
"dependencies": [],
|
||||
"version": "0.0.0",
|
||||
"hash": "11b44baa23034eb669623382c4eafbf62ded61ec23a9ff75c5805d2ead277400",
|
||||
"tarball": "http://localhost:8001/packages/raw/ccemu.tar.xz"
|
||||
"hash": "422adc2dd07d99cbf1d7ca66383a62a4",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/ccemu.tar.gz"
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4,6 +4,6 @@
|
||||
"authors": [],
|
||||
"dependencies": [],
|
||||
"version": "0.0.0",
|
||||
"hash": "338c1e29973887a02b04c739357f83d971fa86f763b7133d3aa63b527836d213",
|
||||
"tarball": "http://localhost:8001/packages/raw/rawexplorer.tar.xz"
|
||||
"hash": "a562bab00d47503234da7fee596208b0",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/rawexplorer.tar.gz"
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"authors": [],
|
||||
"dependencies": [],
|
||||
"version": "0.0.0",
|
||||
"hash": "fcec0c946ec115befcdc731dcf5249a7b8e45b93086e8dce78958d4502d4af91",
|
||||
"tarball": "http://localhost:8001/packages/raw/reactornoboom.tar.xz"
|
||||
"hash": "b5cd95451af1948cbe72a193426e66bf",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/reactornoboom.tar.gz"
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"authors": [],
|
||||
"dependencies": [],
|
||||
"version": "0.0.0",
|
||||
"hash": "bd9da232fbfb4341a3622fafb8c261031896af2f0c984a413dd574d41ffe7b09",
|
||||
"tarball": "http://localhost:8001/packages/raw/rootkit.tar.xz"
|
||||
"hash": "a34478ef284cd38bb21e40a1b31c0454",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/rootkit.tar.gz"
|
||||
}
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
"authors": [],
|
||||
"dependencies": [],
|
||||
"version": "0.0.0",
|
||||
"hash": "d8cc521ce6dc966897badc83523c82cbcbb6c5dfa0c70ca6c852af18f95c8506",
|
||||
"tarball": "http://localhost:8001/packages/raw/taskunmanager.tar.xz"
|
||||
"hash": "a5216495d9b4615706627d68251ebec4",
|
||||
"tarball": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/raw/taskunmanager.tar.gz"
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
{
|
||||
"packages": {
|
||||
"Hypersplash": "http://localhost:8001/packages/Hypersplash.pkg",
|
||||
"brainfuck": "http://localhost:8001/packages/brainfuck.pkg",
|
||||
"ccemu": "http://localhost:8001/packages/ccemu.pkg",
|
||||
"rawexplorer": "http://localhost:8001/packages/rawexplorer.pkg",
|
||||
"reactornoboom": "http://localhost:8001/packages/reactornoboom.pkg",
|
||||
"rootkit": "http://localhost:8001/packages/rootkit.pkg",
|
||||
"taskunmanager": "http://localhost:8001/packages/taskunmanager.pkg"
|
||||
"Hypersplash": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/Hypersplash.pkg",
|
||||
"brainfuck": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/brainfuck.pkg",
|
||||
"ccemu": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/ccemu.pkg",
|
||||
"rawexplorer": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/rawexplorer.pkg",
|
||||
"reactornoboom": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/reactornoboom.pkg",
|
||||
"rootkit": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/rootkit.pkg",
|
||||
"taskunmanager": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/packages/taskunmanager.pkg"
|
||||
},
|
||||
"refs": [],
|
||||
"maintainers": [
|
||||
"Astronand"
|
||||
],
|
||||
"self": "http://localhost:8001/spm.json"
|
||||
"self": "https://git.astronand.dev/Astronand/HyperionOS-packages/raw/branch/main/spm.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user