Skip to content

Commit

Permalink
Update build_chroot.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Feb 8, 2024
1 parent 6468634 commit 6e8ac8f
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions build_chroot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,26 @@ cd lib
mv * ../aarch64-linux-gnu/
mv ../aarch64-linux-gnu ../lib/aarch64-linux-gnu
cd ../../../
# fpm -a arm64 -s dir -t deb -n mpp -v 1.0 -C mpp-package -p mpp_VERSION_ARCH.deb
# echo "copied deb file"
# echo "push to cloudsmith"
# git describe --exact-match HEAD >/dev/null 2>&1
# echo "Pushing the package to OpenHD 2.3 repository"
# ls -a
# ls -a ../../../
# API_KEY=$(cat ../../../cloudsmith_api_key.txt)
# DISTRO=$(cat ../../../distro.txt)
# FLAVOR=$(cat ../../../flavor.txt)
# BOARD=$(cat ../../../board.txt)
fpm -a arm64 -s dir -t deb -n mpp -v 1.0 -C mpp-package -p mpp_VERSION_ARCH.deb
echo "copied deb file"
echo "push to cloudsmith"
git describe --exact-match HEAD >/dev/null 2>&1
echo "Pushing the package to OpenHD 2.3 repository"
ls -a
ls -a ../../../
API_KEY=$(cat ../../../cloudsmith_api_key.txt)
DISTRO=$(cat ../../../distro.txt)
FLAVOR=$(cat ../../../flavor.txt)
BOARD=$(cat ../../../board.txt)

# if [ "$BOARD" = "rk3566" ]; then
# for file in *.deb; do
# mv "$file" "${file%.deb}-rk3566.deb"
# done
# cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1
# else
# for file in *.deb; do
# mv "$file" "${file%.deb}-rk3588.deb"
# done
# cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1
# fi
if [ "$BOARD" = "rk3566" ]; then
for file in *.deb; do
mv "$file" "${file%.deb}-rk3566.deb"
done
cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1
else
for file in *.deb; do
mv "$file" "${file%.deb}-rk3588.deb"
done
cloudsmith push deb --api-key "$API_KEY" openhd/dev-release/${DISTRO}/${FLAVOR} *.deb || exit 1
fi

0 comments on commit 6e8ac8f

Please sign in to comment.