Skip to content

Commit

Permalink
feat: improve nuget installation
Browse files Browse the repository at this point in the history
  • Loading branch information
mjcr99 committed Feb 13, 2025
1 parent bca60a2 commit a9a17d0
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions packages/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,6 @@ set_vcpkg_remote_binary_cache(){

if [[ $(mono --version 2>/dev/null) =~ [0-9] ]]; then
echo "mono already installed, proceeding"

git clone --branch master --single-branch https://github.com/microsoft/vcpkg.git
pushd vcpkg

export VCPKG_ROOT="$(pwd)"

git checkout "2024.09.30"

export VCPKG_BINARY_SOURCES="clear;nuget,GitHub,readwrite"
NUGET_PATH="/usr/local/bin/nuget"
curl -o $NUGET_PATH https://dist.nuget.org/win-x86-commandline/v6.10.2/nuget.exe
mono $NUGET_PATH \
Expand All @@ -90,9 +81,7 @@ set_vcpkg_remote_binary_cache(){
-password "$vcpkg_token"
mono $NUGET_PATH \
setapikey "$vcpkg_token" \
-source "https://nuget.pkg.github.com/wazuh/index.json"

popd
-source "https://nuget.pkg.github.com/wazuh/index.json"
else
echo "mono in not installed, remote binary caching not being enabled"
fi
Expand Down

0 comments on commit a9a17d0

Please sign in to comment.