2020-02-12 21:28:37 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
REQUIRED=(
|
|
|
|
"ipfs"
|
|
|
|
"sha512sum"
|
|
|
|
)
|
|
|
|
for REQUIRE in "${REQUIRED[@]}"
|
|
|
|
do
|
|
|
|
command -v "${REQUIRE}" >/dev/null 2>&1 || echo >&2 "'${REQUIRE}' must be installed"
|
|
|
|
done
|
|
|
|
|
|
|
|
mkdir bundle
|
|
|
|
pushd bundle
|
|
|
|
|
|
|
|
export IPFS_PATH=`mktemp -d`
|
|
|
|
ipfs init
|
|
|
|
ipfs daemon &
|
|
|
|
PID="$!"
|
|
|
|
trap "kill -9 ${PID}" EXIT
|
|
|
|
sleep 30
|
|
|
|
|
2022-11-18 16:07:12 +00:00
|
|
|
cp "/tmp/workspace/appimage/Lotus-${CIRCLE_TAG}-x86_64.AppImage" .
|
2022-04-06 00:26:39 +00:00
|
|
|
sha512sum "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.sha512"
|
|
|
|
ipfs add -q "Lotus-${CIRCLE_TAG}-x86_64.AppImage" > "Lotus-${CIRCLE_TAG}-x86_64.AppImage.cid"
|
|
|
|
popd
|