mirror of
https://github.com/edu4rdshl/rusnapshot.git
synced 2026-07-17 23:24:55 +00:00
(chore): update builder.sh
- Disable docker checks, we now use podman - Use cross for all builds, otherwise the build ends up in glibc versions mismatch
This commit is contained in:
parent
bfca23d1c7
commit
d57c34e9d1
1 changed files with 1 additions and 16 deletions
17
builder.sh
17
builder.sh
|
|
@ -5,17 +5,9 @@ LINUX_TARGET="x86_64-unknown-linux-musl"
|
|||
LINUX_X86_TARGET="i686-unknown-linux-musl"
|
||||
MANPAGE_DIR="./$NAME.1"
|
||||
|
||||
if ! systemctl is-active docker >/dev/null 2>&1; then
|
||||
echo "Docker is not running. Starting docker."
|
||||
if ! sudo systemctl start docker; then
|
||||
echo "Failed to start docker."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
# Linux build
|
||||
echo "Building Linux artifact."
|
||||
if cargo build -q --release --target="$LINUX_TARGET"; then
|
||||
if cross build -q --release --target="$LINUX_TARGET"; then
|
||||
echo "Linux artifact build: SUCCESS"
|
||||
cp "target/$LINUX_TARGET/release/$NAME" "target/$LINUX_TARGET/release/$NAME-linux"
|
||||
strip "target/$LINUX_TARGET/release/$NAME-linux"
|
||||
|
|
@ -45,10 +37,3 @@ if command -v help2man >/dev/null; then
|
|||
else
|
||||
echo "Please install the help2man package."
|
||||
fi
|
||||
|
||||
# Stop docker
|
||||
echo "Stopping docker."
|
||||
if ! sudo systemctl stop docker; then
|
||||
echo "Failed to stop docker."
|
||||
exit 1
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue