This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
Replies: 3 comments
-
dnf copr enable emilsayahi/Dokkoo #! /bin/sh -x
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
source $HOME/.cargo/env
git clone https://github.com/Dirout/dokkoo.git
cargo install cargo-rpm
cd ./dokkoo
export RELEASE=`git rev-parse --short HEAD`
export VERSION=$( awk -F ' = ' '$1 ~ /version/ { gsub(/[\"]/, "", $2); printf("%s",$2) }' ./Cargo.toml )
cargo rpm init
sed -i "s/@@RELEASE@@/$RELEASE/g" ./.rpm/dokkoo.spec
sed -i "s/@@VERSION@@/$VERSION/g" ./.rpm/dokkoo.spec
echo -e "/usr/lib/libdokkoo.so\n/usr/share/doc/dokkoo/COPYING\n/usr/share/doc/dokkoo/README" >> ./.rpm/dokkoo.spec
cargo build --release --target-dir "copr"
mkdir -p ./.rpm/dokkoo-$VERSION
install -Dm755 ./copr/release/dokkoo ./.rpm/dokkoo-$VERSION/usr/bin/dokkoo
install -Dm644 ./copr/release/libdokkoo.so ./.rpm/dokkoo-$VERSION/usr/lib/libdokkoo.so
install -Dm644 ./README ./.rpm/dokkoo-$VERSION/usr/share/doc/dokkoo/README
install -Dm644 ./COPYING ./.rpm/dokkoo-$VERSION/usr/share/doc/dokkoo/COPYING
cd ./.rpm
tar -czvf ./dokkoo-$VERSION.tar.gz ./dokkoo-$VERSION
cd ../
tree ./.rpm |
Beta Was this translation helpful? Give feedback.
0 replies
-
Building releases for Apple Silicon macOS Big Sur: cargo build --release --all-features --target aarch64-apple-darwin -Z unstable-options --out-dir ./out
cd ./out/
strip ./dokkoo
chmod +x ./dokkoo
tar -cvf aarch64-dokkoo.osx.tar \
dokkoo \
libdokkoo.dylib \
libdokkoo.a |
Beta Was this translation helpful? Give feedback.
0 replies
-
To install a version of Dokkoo that is both the bleeding edge, and optimised for your system, compile it from GitHub: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FOSS BSD-based operating systems
Beta Was this translation helpful? Give feedback.
All reactions