~zethra/stargazer

ref: fa560854beb6a8bebdfb5cabc723baa3ef7dfd02 stargazer/scripts/vendor -rwxr-xr-x 668 bytes
fa560854Sashanoraa Add vendor script a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

cargo vendor > config.toml

TAG_NAME="$(git describe --tags $(git rev-list --tags --max-count=1))"

cat > INSTRUSTIONS << EOF
There vendored dependancies are proveded with each release of Stargazer. They
are proveded to ensure that Stargazer can be built even if crates.io is
inaccessable for some reason.

To use these vendored dependancies instead of pulling them from crates.io:

- Place the vendor directory in the root of the project
- Place config.toml in .cargo/config.toml (if the file already exists, appends the content to the existing file)
EOF

tar cvJf "./stargazer-vendor-$TAG_NAME.tar.xz" ./vendor ./config.toml INSTRUSTIONS

rm INSTRUSTIONS