diff options
author | davidovski <david@davidovski.xyz> | 2021-11-16 17:04:19 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2021-11-16 17:04:19 +0000 |
commit | a0a9647da2375251ff8f83e82a406b3fe185bcbb (patch) | |
tree | e81e8bcea5b5ffb4f87c5ef7db281e6875ae5ba8 /build-repo.sh | |
parent | 85b4db71ee61b0add82ec420e10757f6f009cdd3 (diff) |
new package listing system
Diffstat (limited to 'build-repo.sh')
-rwxr-xr-x | build-repo.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/build-repo.sh b/build-repo.sh index a59e7eb..dbff02d 100755 --- a/build-repo.sh +++ b/build-repo.sh @@ -13,7 +13,8 @@ build () { REPO_NAME=$(echo $REPO | cut -d"/" -f2-) REPO_INDEX=dist/$REPO_NAME/index.html - REPO_LIST=dist/$REPO_NAME/packages.txt + REPO_LIST_OLD=dist/$REPO_NAME/packages.txt + REPO_LIST=dist/$REPO_NAME/packages.list start-index $REPO_NAME $REPO_INDEX @@ -101,6 +102,11 @@ conclude-index () { generate-package-list () { cd dist/$REPO_NAME ls -1 *.xipkg.info > packages.txt + + echo "" > packages.list + for file in $(ls -1 *.xipkg); do + echo "$file $(md5sum $file)" >> packages.list + done; cd - } @@ -112,7 +118,8 @@ add-additional () { mv $REPO/* dist/$REPO_NAME/src/ # add key for whole repo - cp keychain/xi.pub dist/repo/ + mkdir dist/keychain + cp keychain/xi.pub dist/keychain/ } clean () { |