2023-10-04 11:44:23 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# ensure the submodules are up to date
|
|
|
|
git submodule init
|
|
|
|
git submodule update
|
|
|
|
|
|
|
|
# begin vendoring cargo dependencies
|
|
|
|
cd external/libphysis
|
|
|
|
cargo vendor ../../cargo-vendored
|
2024-03-22 17:32:11 -04:00
|
|
|
# workaround for https://github.com/rust-lang/cargo/issues/7058, winapi libraries take up a ton of space
|
|
|
|
rm -fr ../../cargo-vendored/winapi*gnu*
|
|
|
|
rm -fr ../../cargo-vendored/windows*
|
2023-10-04 11:44:23 -04:00
|
|
|
mkdir .cargo
|
|
|
|
cp ../../scripts/config.toml .cargo/config.toml
|
|
|
|
cd ../../
|
|
|
|
|
2023-10-04 16:26:04 -04:00
|
|
|
tar --exclude='cmake-build*' --exclude='.idea' --exclude='.clang-format' --exclude='astra-source.tar.gz' --exclude-vcs -zcvf ../astra-source.tar.gz .
|