File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,17 @@ SHORTSHA=${LIBGIT2SHA:0:7}
77OS=` uname`
88ARCH=` uname -m`
99PACKAGEPATH=" nuget.package/runtimes"
10- OSXARCHITECTURE=" x86_64 "
10+ OSXARCHITECTURE=$ARCH
1111
1212if [[ $OS == " Darwin" ]]; then
13- USEHTTPS=" ON"
14- if [[ $ARCH == " arm64" ]]; then
15- OSXARCHITECTURE=" arm64"
16- fi
13+ USEHTTPS=" ON"
14+ if [[ $RID == " osx-arm64" ]]; then
15+ OSXARCHITECTURE=" arm64"
16+ elif [[ $RID == " osx-x64" ]]; then
17+ OSXARCHITECTURE=" x86_64"
18+ fi
1719else
18- USEHTTPS=" OpenSSL-Dynamic"
20+ USEHTTPS=" OpenSSL-Dynamic"
1921fi
2022
2123rm -rf libgit2/build
@@ -38,18 +40,14 @@ cmake --build .
3840popd
3941
4042if [[ $RID == " " ]]; then
41- if [[ $ARCH == " x86_64" ]]; then
42- RID=" unix-x64"
43- else
44- RID=" unix-x86"
45- fi
46- echo " $( tput setaf 3) RID not defined. Falling back to '$RID '.$( tput sgr0) "
43+ echo " $( tput setaf 3) RID not defined. Skipping copy to package path.$( tput sgr0) "
44+ exit 0
4745fi
4846
4947if [[ $OS == " Darwin" ]]; then
50- LIBEXT=" dylib"
48+ LIBEXT=" dylib"
5149else
52- LIBEXT=" so"
50+ LIBEXT=" so"
5351fi
5452
5553rm -rf $PACKAGEPATH /$RID
You can’t perform that action at this time.
0 commit comments