Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions scripts/archive/build-release-archives.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,62 @@ find "${BUILD_DIR}"
echo "------------------------------------------------------------"
dpkg-deb --build "${BUILD_DIR}" ${PROJECT}_${MINA_DEB_VERSION}.deb
ls -lh mina*.deb

cd ..

pushd /home/opam/opam-repository
git pull
popd

git apply scripts/archive/caqti-compatible.patch
opam update
opam upgrade caqti.2.0.1
dune build "--profile=${DUNE_PROFILE}" src/app/replayer/replayer.exe

cd _build

PROJECT="mina-maintenance-replayer"
BUILD_DIR="deb_build"

###### replayer deb

mkdir -p "${BUILD_DIR}/DEBIAN"
cat << EOF > "${BUILD_DIR}/DEBIAN/control"
Package: ${PROJECT}
Version: ${MINA_DEB_VERSION}
Section: base
Priority: optional
Architecture: amd64
Depends: ${SHARED_DEPS}${ARCHIVE_DEPS}
License: Apache-2.0
Homepage: https://minaprotocol.com/
Maintainer: O(1)Labs <[email protected]>
Description: Mina Replayer
Compatible with Mina Daemon
Upgraded Caqti version for low memory usage
Built from ${GITHASH} by ${BUILDKITE_BUILD_URL:-"Mina CI"}
EOF

echo "------------------------------------------------------------"
echo "Control File:"
cat "${BUILD_DIR}/DEBIAN/control"

echo "------------------------------------------------------------"
# Binaries
mkdir -p "${BUILD_DIR}/usr/local/bin"
pwd
ls
cp ./default/src/app/replayer/replayer.exe "${BUILD_DIR}/usr/local/bin/mina-maintenance-replayer"
chmod --recursive +rx "${BUILD_DIR}/usr/local/bin"

# echo contents of deb
echo "------------------------------------------------------------"
echo "Deb Contents:"
find "${BUILD_DIR}"

# Build the package
echo "------------------------------------------------------------"
dpkg-deb --build "${BUILD_DIR}" ${PROJECT}_${MINA_DEB_VERSION}.deb
ls -lh mina*.deb

git restore ..
Loading