Skip to content

Commit

Permalink
Bump Pipeline tool on MacOS to use v4.6.1. (#5457)
Browse files Browse the repository at this point in the history
* Bump Pipeline tool on MacOS to use v4.6.1.

* Fixed up the dylib "id" to NOT include a mono path.

* More fixes.. hopefully

* Added missing files to Pipeline package

* Fixed a weird issue with mono

* fixed previous commit
  • Loading branch information
dellis1972 authored and KonajuGames committed Feb 22, 2017
1 parent 4bfa43a commit a9c49cc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Build/Projects/Pipeline.definition
Expand Up @@ -28,6 +28,10 @@
<Platform Name="MacOS">TRACE;MONOMAC;GTK2</Platform>
<Platform Name="Linux">TRACE;LINUX;GTK3</Platform>
</CustomDefinitions>
<FrameworkVersions>
<Platform Name="MacOS"><Version>v4.6.1</Version></Platform>
</FrameworkVersions>
<IncludeMonoRuntimeOnMac>True</IncludeMonoRuntimeOnMac>
</Properties>

<Files>
Expand Down
3 changes: 3 additions & 0 deletions Installers/MacOS/Scripts/Pipeline/postinstall
Expand Up @@ -37,6 +37,9 @@ if [ -d '/Applications/Xamarin Studio.app' ]
then
/Applications/Xamarin\ Studio.app/Contents/MacOS/mdtool setup uninstall MonoDevelop.MonoGame -y
fi
if [ ! -d '/Library/Frameworks/Mono.framework/Versions/4.6.2' ]
ln -s /Library/Frameworks/Mono.framework/Versions/Current /Library/Frameworks/Mono.framework/Versions/4.6.2
fi
sudo rm /usr/local/bin/mgcb
sudo rm /usr/local/bin/monogame-uninstall
" >> /usr/local/bin/monogame-uninstall
Expand Down
15 changes: 14 additions & 1 deletion Installers/default.build
Expand Up @@ -54,8 +54,21 @@
<copy todir="../Tools/Pipeline/bin/MacOS/AnyCPU/Release/Pipeline.app/Contents/MonoBundle">
<fileset basedir="../Tools/Pipeline/bin/MacOS/AnyCPU/Release">
<include name="ff*"/>
</fileset>
<include name="*.dylib"/>
</fileset>
</copy>
<!-- Correct the id of the dylibs -->
<foreach item="File" property="dylibname">
<in>
<items basedir="../Tools/Pipeline/bin/MacOS/AnyCPU/Release/Pipeline.app/Contents/MonoBundle/">
<include name="*.dylib" />
</items>
</in>
<do>
<echo message="${path::get-file-name(dylibname)}" />
<exec program="install_name_tool" workingdir="../Tools/Pipeline/bin/MacOS/AnyCPU/Release/Pipeline.app/Contents/MonoBundle" commandline=' -id "@executable_path/../MonoBundle/${path::get-file-name(dylibname)}" ${path::get-file-name(dylibname)}' />
</do>
</foreach>
<exec program="pkgbuild" workingdir="../Tools/Pipeline/bin/MacOS/AnyCPU/Release" commandline=" --component ./Pipeline.app --identifier com.monogame.pipeline --version ${buildNumber} --scripts ${project::get-base-directory()}/MacOS/Scripts/Pipeline --install-location /Applications ${project::get-base-directory()}/Pipeline.MacOS.pkg" />
<exec program="pkgbuild" workingdir="." commandline=" --root ./root --identifier com.monogame.xsaddin --version ${buildNumber} --scripts ${project::get-base-directory()}/MacOS/Scripts/Addin ${project::get-base-directory()}/MonoGame.XamarinStudio.Addin.pkg" />
<!-- Build Framework .pkg -->
Expand Down

0 comments on commit a9c49cc

Please sign in to comment.