Loupe/build-aux/meson/dist-vendor.sh
Christopher Davis 2e237d41e8 build: Add dist script
This script will vendor the Rust dependencies
of the app so that our tarballs can be built
offline.
2023-04-02 22:10:07 +00:00

9 lines
237 B
Bash

#!/bin/sh
export DIST="$1"
export SOURCE_ROOT="$2"
cd "$SOURCE_ROOT"
mkdir "$DIST"/.cargo
cargo vendor | sed 's/^directory = ".*"/directory = "vendor"/g' > $DIST/.cargo/config
# Move vendor into dist tarball directory
mv vendor "$DIST"