Use mono for MachOConverter in build.sh
This commit is contained in:
parent
de528fff42
commit
385a756a7e
9
build.sh
9
build.sh
|
@ -293,7 +293,11 @@ PackageMacOS()
|
|||
|
||||
echo "Adding sqlite dylib"
|
||||
CheckExitCode cp "$sqlitePackageDir/runtimes/osx-x64/native/net46"/*.config $outputFolderMacOS/
|
||||
if [ $runtime = "dotnet" ] ; then
|
||||
CheckExitCode $macho merge $outputFolderMacOS "$sqlitePackageDir/runtimes/osx-x64/native/net46"/*.dylib "$sqlitePackageDir/runtimes/osx-arm64/native/net46"/*.dylib
|
||||
else
|
||||
CheckExitCode mono $macho merge $outputFolderMacOS "$sqlitePackageDir/runtimes/osx-x64/native/net46"/*.dylib "$sqlitePackageDir/runtimes/osx-arm64/native/net46"/*.dylib
|
||||
fi
|
||||
|
||||
echo "Adding MediaInfo dylib"
|
||||
CheckExitCode cp $sourceFolder/Libraries/MediaInfo/x64/*.dylib $outputFolderMacOS/
|
||||
|
@ -323,7 +327,12 @@ PackageMacOSApp()
|
|||
CheckExitCode cp -r $outputFolderLinux/* $outputFolderMacOSAppBin
|
||||
|
||||
echo "Adding sqlite dylib"
|
||||
if [ $runtime = "dotnet" ] ; then
|
||||
CheckExitCode $macho merge $outputFolderMacOSAppBin "$sqlitePackageDir/runtimes/osx-x64/native/net46" "$sqlitePackageDir/runtimes/osx-arm64/native/net46"
|
||||
else
|
||||
CheckExitCode mono $macho merge $outputFolderMacOSAppBin "$sqlitePackageDir/runtimes/osx-x64/native/net46" "$sqlitePackageDir/runtimes/osx-arm64/native/net46"
|
||||
fi
|
||||
|
||||
|
||||
echo "Adding MediaInfo dylib"
|
||||
CheckExitCode cp $sourceFolder/Libraries/MediaInfo/x64/*.dylib $outputFolderMacOSAppBin/
|
||||
|
|
Loading…
Reference in New Issue