add some stuff for reproducable builds
This commit is contained in:
parent
3112871ceb
commit
7375f39ffb
1 changed files with 30 additions and 3 deletions
12
scripts/build_avif_native.sh
Normal file
12
scripts/build_avif_native.sh
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "${PUB_CACHE:-$HOME/.pub-cache}"/hosted/pub.dev/avif_native-*
|
||||
|
||||
bash tool/native/build_unix.sh android-arm64 decode-dav1d
|
||||
|
||||
library=dist/android-arm64/decode-dav1d/libavif_native.so
|
||||
jq --arg path "../$library" --arg hash "$(sha256sum "$library" | cut -d " " -f 1)" \
|
||||
'.artifacts["android-arm64-decode-dav1d"] |= {path: $path, librarySha256: $hash, fileName}' \
|
||||
native/manifest.json > manifest.json
|
||||
mv manifest.json native/manifest.json
|
||||
Loading…
Reference in a new issue