fix spm files

This commit is contained in:
2026-08-14 21:11:46 -04:00
parent 69d8c9434b
commit 3d298bd609
16 changed files with 27 additions and 27 deletions
+5 -5
View File
@@ -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: