mirror of
https://github.com/redstrate/Astra.git
synced 2025-04-20 03:37:47 +00:00
Add script and CI to generate complete tarballs
This commit is contained in:
parent
a9fca8cdef
commit
c1646e20f6
4 changed files with 28 additions and 1 deletions
|
@ -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
9
scripts/config.toml
Normal 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
14
scripts/tarball.sh
Executable 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 .
|
Loading…
Add table
Reference in a new issue