Skip to content

Instantly share code, notes, and snippets.

@lbussell
Last active October 13, 2022 17:24
Show Gist options
  • Save lbussell/5789974491e3d3ed737aac0e8b97b594 to your computer and use it in GitHub Desktop.
Save lbussell/5789974491e3d3ed737aac0e8b97b594 to your computer and use it in GitHub Desktop.
6.0 Servicing Scripts
#!/bin/bash
# Use this in a directory with:
# * x64 prereqs
# * arm64 prereqs
# * any extra nupkgs that you want to add
set -euxo pipefail
mkdir x64
mkdir arm64
tar -xzf *smoke*x64*.tar.gz -C x64/
tar -xzf *smoke*arm64*.tar.gz -C arm64/
# copy necessary arm64 packages
cp arm64/*linux-arm64* x64/
# copy extra packages
cp *.nupkg x64/
# create final prereqs tarball
pushd x64
tar -czf ../dotnet-smoke-test-prereqs.tar.gz .
popd
# cleanup
rm -rf x64/
rm -rf arm64/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment