1
Fork 0
mirror of https://github.com/redstrate/Astra.git synced 2025-04-20 11:47:46 +00:00

Try to use cargo-vendor-filterer to filter out Windows crates

This commit is contained in:
Joshua Goins 2024-03-22 17:48:07 -04:00
parent 1932ea0aa1
commit ec7f68ce92
2 changed files with 2 additions and 4 deletions

View file

@ -38,6 +38,7 @@ tasks:
# cmake --build build-cmake
- flatpak: |
cd astra
cargo install cargo-vendor-filterer
./scripts/build-flatpak.sh
artifacts:
- astra-source.tar.gz

View file

@ -6,10 +6,7 @@ git submodule update
# begin vendoring cargo dependencies
cd external/libphysis
cargo vendor ../../cargo-vendored
# 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*
cargo vendor-filterer --platform=x86_64-unknown-linux-gnu ../../cargo-vendored
mkdir .cargo
cp ../../scripts/config.toml .cargo/config.toml
cd ../../