Merge pull request #1964 from markusstoll/bugfixes/osx_compile

Compile under OSX
This commit is contained in:
Hylke Bons 2021-02-15 10:29:22 +01:00 committed by GitHub
commit 954f1e6b1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 6 deletions

View file

@ -1,2 +0,0 @@
<configuration>
</configuration>

View file

@ -8,12 +8,17 @@ echo packing ${bundle} for release without Mono framework dependency
export MONO_PATH=`readlink /Library/Frameworks/Mono.framework/Versions/Current` export MONO_PATH=`readlink /Library/Frameworks/Mono.framework/Versions/Current`
export PKG_CONFIG_PATH=/usr/lib/pkgconfig:${MONO_PATH}/lib/pkgconfig export PKG_CONFIG_PATH=/usr/lib/pkgconfig:${MONO_PATH}/lib/pkgconfig
export AS="as -arch i386"
export CC="cc -arch i386 -lobjc -liconv -framework Foundation"
export PATH=/usr/local/bin:/opt/local/bin:/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/bin:/bin export PATH=/usr/local/bin:/opt/local/bin:/Library/Frameworks/Mono.framework/Versions/Current/bin:/usr/bin:/bin
cd ${bundle}/Contents/MonoBundle/ cd ${bundle}/Contents/MonoBundle/
# merge all Assemblies into one Mac binary # merge all Assemblies into one Mac binary
mkbundle --static --deps --config ./config -o ../MacOS/SparkleShare SparkleShare.exe Sparkles.dll Xamarin.Mac.dll Sparkles.Git.dll mkbundle \
--simple \
-v \
--config ./config \
--library libxammac.dylib \
--library libmono-native-compat.0.dylib \
-o ../MacOS/SparkleShare \
SparkleShare.exe Sparkles.dll Sparkles.Git.dll
rm *.dll *.exe rm *.dll *.exe

View file

@ -11,4 +11,3 @@ export PATH=/usr/local/bin:/opt/local/bin:/Library/Frameworks/Mono.framework/Ver
${projectFolder}/checkGit.sh ${projectFolder}/checkGit.sh
tar -x -f ${projectFolder}/git.tar.gz --directory ${bundle}/Contents/Resources tar -x -f ${projectFolder}/git.tar.gz --directory ${bundle}/Contents/Resources
cp -R SparkleShareInviteOpener.app ${bundle}/Contents/Resources cp -R SparkleShareInviteOpener.app ${bundle}/Contents/Resources
cp config ${bundle}/Contents/MonoBundle