Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
ace: fix build_aci script to new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
jonboulle committed Dec 11, 2014
1 parent f16eb5f commit 96c52ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ace/build_aci
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ if ! [[ $0 =~ "${PREFIX}/build_aci" ]]; then
exit 255
fi

if ! [[ -f "bin/ace-validator" ]]; then
./build
fi

for typ in main sidekick; do
layoutdir="bin/ace-${typ}-layout"
mkdir -p ${layoutdir}/rootfs
Expand All @@ -22,7 +26,7 @@ for typ in main sidekick; do
for path in rootfs rootfs/ace-validator; do
touch -a -m -d 1415660606 ${path}
done
../actool build --overwrite --app-manifest manifest rootfs/ ../ace-validator-${typ}.aci
../actool build --overwrite ./ ../ace-validator-${typ}.aci
# TODO(jonboulle): create uncompressed instead, then gzip?
HASH=sha256-$(gzip -d -f ../ace-validator-${typ}.aci -c | sha256sum - | awk '{print $1}')
gpg --cipher-algo AES256 --output ace-validator-${typ}.sig --detach-sig ../ace-validator-${typ}.aci
Expand Down

0 comments on commit 96c52ea

Please sign in to comment.