build: Replace all MonoMac references

This commit is contained in:
Hylke Bons 2017-09-10 13:12:24 +01:00
parent 9243ce2df0
commit 0cc28520dc
13 changed files with 39 additions and 43 deletions

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -15,7 +15,7 @@
// along with this program. If not, see <http://www.gnu.org/licenses/>. // along with this program. If not, see <http://www.gnu.org/licenses/>.
using MonoMac.AppKit; using AppKit;
namespace SparkleShare namespace SparkleShare
{ {

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -20,13 +20,11 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading; using System.Threading;
using Mono.Unix.Native; using Foundation;
using MonoMac.Foundation; using AppKit;
using MonoMac.AppKit;
using Sparkles; using Sparkles;
using Sparkles.Git; using Sparkles.Git;
using System.Linq;
namespace SparkleShare { namespace SparkleShare {
@ -91,11 +89,10 @@ namespace SparkleShare {
} }
public override void CreateStartupItem () // There aren't any bindings in Xamarin.Mac to support this yet, so
{ // we call out to an applescript to do the job
// There aren't any bindings in MonoMac to support this yet, so public override void CreateStartupItem ()
// we call out to an applescript to do the job {
string args = "-e 'tell application \"System Events\" to " + string args = "-e 'tell application \"System Events\" to " +
"make login item at end with properties " + "make login item at end with properties " +
"{path:\"" + NSBundle.MainBundle.BundlePath + "\", hidden:false}'"; "{path:\"" + NSBundle.MainBundle.BundlePath + "\", hidden:false}'";

View file

@ -11,8 +11,8 @@
namespace SparkleShare { namespace SparkleShare {
// Should subclass MonoMac.AppKit.NSResponder // Should subclass AppKit.NSResponder
[MonoMac.Foundation.Register("AppDelegate")] [Foundation.Register("AppDelegate")]
public partial class AppDelegate { public partial class AppDelegate {
} }
} }

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -18,8 +18,8 @@
using System; using System;
using System.Drawing; using System.Drawing;
using MonoMac.AppKit; using AppKit;
using MonoMac.Foundation; using Foundation;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -16,7 +16,7 @@
using System; using System;
using MonoMac.Foundation; using Foundation;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -19,9 +19,9 @@ using System;
using System.Drawing; using System.Drawing;
using System.IO; using System.IO;
using MonoMac.AppKit; using AppKit;
using MonoMac.Foundation; using Foundation;
using MonoMac.WebKit; using WebKit;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -18,8 +18,8 @@
using System; using System;
using System.Drawing; using System.Drawing;
using MonoMac.AppKit; using AppKit;
using MonoMac.Foundation; using Foundation;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -21,9 +21,9 @@ using System.Drawing;
using System.IO; using System.IO;
using Mono.Unix; using Mono.Unix;
using MonoMac.Foundation; using Foundation;
using MonoMac.AppKit; using AppKit;
using MonoMac.WebKit; using WebKit;
using Sparkles; using Sparkles;

View file

@ -1,4 +1,4 @@
// SparkleShare, an instant update workflow to Git. // SparkleShare, an instant update workflow to Git.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -18,8 +18,8 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using MonoMac.Foundation; using Foundation;
using MonoMac.AppKit; using AppKit;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,4 +1,4 @@
// SparkleShare, an instant update workflow to Git. // SparkleShare, an instant update workflow to Git.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -19,7 +19,7 @@ using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Drawing; using System.Drawing;
using MonoMac.AppKit; using AppKit;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,4 +1,4 @@
// SparkleShare, a collaboration and sharing tool. // SparkleShare, a collaboration and sharing tool.
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk> // Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
// //
// This program is free software: you can redistribute it and/or modify // This program is free software: you can redistribute it and/or modify
@ -17,8 +17,8 @@
using System; using System;
using MonoMac.AppKit; using AppKit;
using MonoMac.Foundation; using Foundation;
namespace SparkleShare { namespace SparkleShare {

View file

@ -1,6 +1,6 @@
// Originally taken from: // Originally taken from:
// https://github.com/jesse99/Continuum/blob/master/source/shared/DirectoryWatcher.cs // https://github.com/jesse99/Continuum/blob/master/source/shared/DirectoryWatcher.cs
// Modified to use MonoMac and integrate into SparkleShare // Modified to use Xamarin.Mac and integrate into SparkleShare
// //
// Copyright (C) 2008 Jesse Jones // Copyright (C) 2008 Jesse Jones
// Copyright (C) 2012 Hylke Bons // Copyright (C) 2012 Hylke Bons
@ -30,7 +30,7 @@ using System.Collections.Generic;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using System.IO; using System.IO;
using MonoMac.Foundation; using Foundation;
namespace SparkleShare { namespace SparkleShare {

View file

@ -19,6 +19,5 @@ cp ${MONO_PATH}/lib/libMonoPosixHelper.dylib ../MacOS/
sed -i .bak 's/libMonoPosixHelper.dylib/@executable_path\/libMonoPosixHelper.dylib/' ./config sed -i .bak 's/libMonoPosixHelper.dylib/@executable_path\/libMonoPosixHelper.dylib/' ./config
# 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 MonoMac.dll Sparkles.Git.dll mkbundle --static --deps --config ./config -o ../MacOS/SparkleShare SparkleShare.exe Sparkles.dll Xamarin.Mac.dll Sparkles.Git.dll
rm *.dll *.exe rm *.dll *.exe