Skip to content

Commit

Permalink
Fix mac build script
Browse files Browse the repository at this point in the history
  • Loading branch information
Bargsteen committed Apr 14, 2023
1 parent 510545b commit 47b615e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/distribution/macOS-package/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ readonly collectorDir="$macPackageDir/../../../collector"
readonly consensusDir="$macPackageDir/../../../concordium-consensus"

readonly toolsDir="$macPackageDir/tools"
readonly macdylibbundlerDir="$toolsDir/macdylibbundler-1.0.0"
readonly macdylibbundlerDir="$toolsDir/macdylibbundler-1.0.5"

readonly buildDir="$macPackageDir/build"
readonly payloadDir="$buildDir/payload"
Expand Down Expand Up @@ -226,7 +226,7 @@ function getDylibbundler() {
logInfo " -- Downloading..."
mkdir "$toolsDir"
cd "$macPackageDir"
curl -sSL "https://github.com/auriamg/macdylibbundler/archive/refs/tags/1.0.0.zip" > "$toolsDir/dylibbundler.zip" \
curl -sSL "https://github.com/auriamg/macdylibbundler/archive/refs/tags/1.0.5.zip" > "$toolsDir/dylibbundler.zip" \
&& logInfo " -- Unzipping..." \
&& cd "$toolsDir" \
&& unzip "dylibbundler.zip" \
Expand All @@ -248,7 +248,7 @@ function collectDylibs() {
local fileToFix=${1:?"Missing file to fix with dylibbundler"};
cd "$payloadDir/Library/Concordium Node"
# Paths to search for dylibs are added with the '-s' flag.
"$macdylibbundlerDir/dylibbundler" --fix-file "$fileToFix" --bundle-deps --dest-dir "./libs" --install-path "@executable_path/libs/" --overwrite-dir \
"$macdylibbundlerDir/dylibbundler" --fix-file "$fileToFix" --bundle-deps --dest-dir "./libs" --install-path "@executable_path/libs/" --create-dir \
-s "$concordiumDylibDir" \
-s "$stackSnapshotDir" \
$stackLibDirs # Unquoted on purpose to use as arguments correctly
Expand Down

0 comments on commit 47b615e

Please sign in to comment.