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:
|
||||
|
||||
Reference in New Issue
Block a user