2
0
mirror of https://github.com/qarmin/czkawka synced 2024-11-16 06:12:48 +00:00
czkawka/misc/cargo/PublishCore.sh

25 lines
443 B
Bash
Raw Normal View History

#!/bin/bash
NUMBER="6.0.0"
CZKAWKA_PATH="/home/rafal"
cd "$CZKAWKA_PATH"
CZKAWKA_PATH="$CZKAWKA_PATH/czkawka"
rm -rf $CZKAWKA_PATH
git clone https://github.com/qarmin/czkawka.git "$CZKAWKA_PATH"
cd $CZKAWKA_PATH
git checkout "$NUMBER"
cd "$CZKAWKA_PATH/czkawka_core"
cargo package
if [ $(echo $?) != "0" ]
then
echo "Cargo package failed CORE"
exit 1
fi
git reset --hard
cd "$CZKAWKA_PATH/czkawka_core"
cargo publish
git reset --hard