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

Add script and CI to generate complete tarballs

This commit is contained in:
Joshua Goins 2023-10-04 11:44:23 -04:00
parent a9fca8cdef
commit c1646e20f6
4 changed files with 28 additions and 1 deletions

View file

@ -21,6 +21,9 @@ tasks:
- reuse: | - reuse: |
cd astra cd astra
reuse lint reuse lint
- tarball: |
cd astra
./scripts/tarball.sh
#- configure: | #- configure: |
# cd astra # cd astra
# cmake -S . -B build-cmake # cmake -S . -B build-cmake
@ -30,6 +33,7 @@ tasks:
#- flatpak: | #- flatpak: |
# cd astra # cd astra
# ./build-flatpak.sh # ./build-flatpak.sh
#artifacts: artifacts:
- astra-source.tar.gz
# - astra/build-cmake/bin/astra # - astra/build-cmake/bin/astra
# - astra/astra.flatpak # - astra/astra.flatpak

9
scripts/config.toml Normal file
View file

@ -0,0 +1,9 @@
[source.crates-io]
replace-with = "vendored-sources"
[source."git+https://git.sr.ht/~redstrate/physis"]
git = "https://git.sr.ht/~redstrate/physis"
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "../../cargo-vendored"

14
scripts/tarball.sh Executable file
View file

@ -0,0 +1,14 @@
#!/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
mkdir .cargo
cp ../../scripts/config.toml .cargo/config.toml
cd ../../
tar --exclude='*build*' --exclude='.idea' --exclude='.clang-format' --exclude='astra-source.tar.gz' --exclude-vcs -zcvf astra-source.tar.gz .