mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-10-29 00:05:13 +08:00
17 lines
356 B
Bash
Executable File
17 lines
356 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
root="$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)"
|
|
stage="${BUILD_DIR:-$root/build/ipk}/stage"
|
|
|
|
mkdir -p "$root/dist"
|
|
"$root/scripts/check-version-sync.sh"
|
|
"$root/scripts/stage-package.sh" "$stage"
|
|
rm -f "$root/dist"/*.ipk
|
|
python3 "$root/scripts/pack-ipk.py" "$stage" "$root/dist"
|
|
(
|
|
cd "$root/dist"
|
|
sha256sum ./*.ipk >SHA256SUMS
|
|
)
|