mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2025-12-29 23:55:52 +01:00
10 lines
538 B
Bash
Executable File
10 lines
538 B
Bash
Executable File
#!/bin/bash
|
|
echo "NOTE: I assume you have called the respective make cargo-cli ARGS=build beforehand"
|
|
version=${1:?First argument must be the version CLI we deploy, like v0.1.0}
|
|
rtype=${2:?Second argument is either 'release' or 'debug'}
|
|
|
|
tar_basename=google-apis-rs_cli-${version}_linux-x86-64_${rtype}
|
|
tar_file=${tar_basename}.tar.gz
|
|
tar -czf $tar_file --transform "s%^.*/%%" -T <(find gen -executable -type f -path "*/${rtype}/*" -not \( -name "*.*" -or -name "*script*" -or -regex ".*-[a-f0-9]{16}" \)) || exit $?
|
|
echo Wrote $tar_file
|