Skip to content

Commit 32c5451

Browse files
committed
[ci] Publish package checksums #149
Add make package/index to generate Packages file with SHA256 checksums. Filter to only include openwisp packages and save as Packages.sha256.checksum following OpenWRT's standard format. Fixes #149
1 parent 746a34c commit 32c5451

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

runbuild

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,15 @@ fi
5252

5353
make -j"$CORES" package/openwisp-config/compile || make -j1 V=s package/openwisp-config/compile || exit 1
5454

55+
# Generate package index with checksums
56+
cd "$BUILD_DIR"/openwrt
57+
make package/index
58+
59+
# Filter Packages file to include only openwisp packages and save as checksum file
60+
awk '/^Package: openwisp/,/^$/' \
61+
"$BUILD_DIR"/openwrt/bin/packages/"$COMPILE_TARGET"/Packages \
62+
>"$BUILD_DIR"/openwrt/bin/packages/"$COMPILE_TARGET"/openwisp/Packages.sha256.checksum
63+
5564
mv "$BUILD_DIR"/openwrt/bin/packages/"$COMPILE_TARGET"/openwisp "$VERSIONED_DIR"
5665

5766
rm "$LATEST_LINK" || true

0 commit comments

Comments
 (0)