2018-12-14 14:36:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd $(dirname $0)/..
|
|
|
|
|
2019-02-06 03:27:24 +00:00
|
|
|
source ./scripts/version
|
|
|
|
|
2018-12-14 14:36:07 +00:00
|
|
|
if [ ! -f ./dist/artifacts/rootfs_arm64.tar.gz ]; then
|
|
|
|
echo "Please run make first"
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
|
|
|
cp ./dist/artifacts/rootfs_arm64.tar.gz ./scripts/images/raspberry-pi-hypriot64/
|
|
|
|
pushd ./scripts/images/raspberry-pi-hypriot64/
|
|
|
|
./../../../.dapper
|
|
|
|
popd
|
|
|
|
|
2020-11-14 17:21:38 +00:00
|
|
|
cp ./scripts/images/raspberry-pi-hypriot64/dist/burmillaos-raspberry-pi64.zip ./dist/artifacts/
|
2018-12-14 14:36:07 +00:00
|
|
|
|
2020-11-14 17:21:38 +00:00
|
|
|
touch dist/publish.sh
|
|
|
|
chmod 755 dist/publish.sh
|
2018-12-14 14:36:07 +00:00
|
|
|
|
2020-11-14 17:21:38 +00:00
|
|
|
echo "github-release upload --user burmilla --repo os --tag ${VERSION} --file dist/artifacts/burmillaos-raspberry-pi64.zip --name burmillaos-${VERSION}-raspberry-pi64.zip" >> dist/publish.sh
|