Update README to build on OSX. Closes #383

This commit is contained in:
Hylke Bons 2011-11-11 22:01:51 +00:00
parent a26d1fb48a
commit 11609bccf2
4 changed files with 9 additions and 7 deletions

5
README
View file

@ -109,9 +109,10 @@ Now that you have compiled the libraries, open 'SparkleShare/Mac/SparkleShare.sl
MonoDevelop and start the build.
To create the SparkleShare.app, make sure the project is focused and select Project from the menu bar
and click "Create Mac Installer..." Save the SparkleShare.app somewhere.
and click "Create Mac Installer...". Make sure to select "Don't link assemblies".
Paste the contents of the following file in SparkleShare.app/Contents/MonoBundle/config:
Save the SparkleShare.app somewhere. Paste the contents of
the following file in SparkleShare.app/Contents/MonoBundle/config:
https://raw.github.com/gist/1aeffa61bac73fc08eca/0c0f09ef9e36864c35f34fd5e8bf4f99886be193/gistfile1.txt
Copy /Library/Frameworks/Mono.framework/Versions/Current/lib/libintl.dylib

View file

@ -117,7 +117,8 @@ namespace SparkleLib {
"<sparkleshare>" + n +
" <user>" + n +
" <name>" + user_name + "</name>" + n +
" <email>Unknown</email>" + n + " </user>" + n +
" <email>Unknown</email>" + n +
" </user>" + n +
"</sparkleshare>");
SparkleHelpers.DebugInfo ("Config", "Created \"" + FullPath + "\"");

View file

@ -66,6 +66,7 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\bin\SparkleLib.dll</HintPath>
</Reference>
<Reference Include="System.Net" />
</ItemGroup>
<ItemGroup>
<Compile Include="AppDelegate.cs">

View file

@ -886,15 +886,14 @@ namespace SparkleShare {
// Add some restrictions to what the key can
// do when uploaded to the server
string public_key = File.ReadAllText (key_file_path + ".pub");
public_key = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty " + public_key;
File.WriteAllText (key_file_path + ".pub", public_key);
// string public_key = File.ReadAllText (key_file_path + ".pub");
// public_key = "no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty " + public_key;
// File.WriteAllText (key_file_path + ".pub", public_key);
// Create an easily accessible copy of the public
// key in the user's SparkleShare folder
File.Copy (key_file_path + ".pub",
Path.Combine (SparklePath, UserName + "'s key.txt"));
}
}