Created
October 31, 2023 08:27
-
-
Save waldekmastykarz/f2be724d90a4aabe4cb165fa46301f90 to your computer and use it in GitHub Desktop.
Build m365proxy locally
This file contains hidden or 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
# stop on the first error | |
set -e | |
architecture="osx-x64" | |
release="m365-developer-proxy-$architecture-local" | |
# Clean | |
rm -rf ./$release | |
# Publish | |
dotnet publish ./m365-developer-proxy/m365-developer-proxy.csproj -c Release -p:PublishSingleFile=true -r $architecture --self-contained -o ./$release | |
# Build plugins | |
dotnet build ./m365-developer-proxy-plugins/m365-developer-proxy-plugins.csproj -c Release -r $architecture --no-self-contained | |
# Add plugins to output | |
cp -r ./m365-developer-proxy/bin/Release/net7.0/$architecture/plugins ./$release | |
# Remove unnecessary files | |
pushd . | |
cd ./$release | |
find . -name "*.pdb" -type f -delete | |
find . -name "*.deps.json" -type f -delete | |
find . -name "*.runtimeconfig.json" -type f -delete | |
popd | |
# Archive Release | |
zip -r $release.zip $release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment