-
-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deploy): simple osx deploy script
* added simple script to build tar archive with all debug/release binaries. * slightly improved docker script, even though it would need additional work. For now, I use the cloud VM anyway
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/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}_osx-10.10_${rtype} | ||
tar_file=${tar_basename}.tar.gz | ||
dest_dir=build/$tar_basename | ||
mkdir -p $dest_dir || exit $? | ||
find -E gen -perm +0111 -type f -path "*/${rtype}/*" -not \( -name "*.*" -or -name "*script*" -or -regex ".*-[a-f0-9]{16}" \) | xargs -J % cp -v % $dest_dir || exit $? | ||
(cd build && tar -czvf ${tar_file} ${tar_basename}) || exit $? | ||
rm -Rfv $dest_dir || exit $? | ||
echo Wrote build/$tar_file |