build: Replace all MonoMac references
This commit is contained in:
parent
9243ce2df0
commit
0cc28520dc
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// 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/>.
|
||||
|
||||
|
||||
using MonoMac.AppKit;
|
||||
using AppKit;
|
||||
|
||||
namespace SparkleShare
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// 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.Threading;
|
||||
|
||||
using Mono.Unix.Native;
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
|
||||
using Sparkles;
|
||||
using Sparkles.Git;
|
||||
using System.Linq;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
@ -91,11 +89,10 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
|
||||
// There aren't any bindings in Xamarin.Mac to support this yet, so
|
||||
// we call out to an applescript to do the job
|
||||
public override void CreateStartupItem ()
|
||||
{
|
||||
// There aren't any bindings in MonoMac to support this yet, so
|
||||
// we call out to an applescript to do the job
|
||||
|
||||
string args = "-e 'tell application \"System Events\" to " +
|
||||
"make login item at end with properties " +
|
||||
"{path:\"" + NSBundle.MainBundle.BundlePath + "\", hidden:false}'";
|
||||
|
|
4
SparkleShare/Mac/MainMenu.xib.designer.cs
generated
4
SparkleShare/Mac/MainMenu.xib.designer.cs
generated
|
@ -11,8 +11,8 @@
|
|||
namespace SparkleShare {
|
||||
|
||||
|
||||
// Should subclass MonoMac.AppKit.NSResponder
|
||||
[MonoMac.Foundation.Register("AppDelegate")]
|
||||
// Should subclass AppKit.NSResponder
|
||||
[Foundation.Register("AppDelegate")]
|
||||
public partial class AppDelegate {
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -18,8 +18,8 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.Foundation;
|
||||
using AppKit;
|
||||
using Foundation;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -16,7 +16,7 @@
|
|||
|
||||
|
||||
using System;
|
||||
using MonoMac.Foundation;
|
||||
using Foundation;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -19,9 +19,9 @@ using System;
|
|||
using System.Drawing;
|
||||
using System.IO;
|
||||
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.WebKit;
|
||||
using AppKit;
|
||||
using Foundation;
|
||||
using WebKit;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -18,8 +18,8 @@
|
|||
using System;
|
||||
using System.Drawing;
|
||||
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.Foundation;
|
||||
using AppKit;
|
||||
using Foundation;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -21,9 +21,9 @@ using System.Drawing;
|
|||
using System.IO;
|
||||
|
||||
using Mono.Unix;
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.WebKit;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
using WebKit;
|
||||
|
||||
using Sparkles;
|
||||
|
||||
|
|
|
@ -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>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -18,8 +18,8 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
using MonoMac.Foundation;
|
||||
using MonoMac.AppKit;
|
||||
using Foundation;
|
||||
using AppKit;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -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>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -19,7 +19,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
|
||||
using MonoMac.AppKit;
|
||||
using AppKit;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// SparkleShare, a collaboration and sharing tool.
|
||||
// SparkleShare, a collaboration and sharing tool.
|
||||
// Copyright (C) 2010 Hylke Bons <hi@planetpeanut.uk>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
|
@ -17,8 +17,8 @@
|
|||
|
||||
using System;
|
||||
|
||||
using MonoMac.AppKit;
|
||||
using MonoMac.Foundation;
|
||||
using AppKit;
|
||||
using Foundation;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Originally taken from:
|
||||
// Originally taken from:
|
||||
// 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) 2012 Hylke Bons
|
||||
|
@ -30,7 +30,7 @@ using System.Collections.Generic;
|
|||
using System.Runtime.InteropServices;
|
||||
using System.IO;
|
||||
|
||||
using MonoMac.Foundation;
|
||||
using Foundation;
|
||||
|
||||
namespace SparkleShare {
|
||||
|
||||
|
|
|
@ -19,6 +19,5 @@ cp ${MONO_PATH}/lib/libMonoPosixHelper.dylib ../MacOS/
|
|||
sed -i .bak 's/libMonoPosixHelper.dylib/@executable_path\/libMonoPosixHelper.dylib/' ./config
|
||||
|
||||
# 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
|
||||
|
||||
|
|
Loading…
Reference in a new issue