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

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

(cherry picked from commit ec7f68ce92)
This commit is contained in:
Joshua Goins 2024-03-22 17:48:07 -04:00
parent 03f46612f4
commit 77626e6375
2 changed files with 2 additions and 4 deletions

View file

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

View file

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