From 9a916ff2676ef737604a6c687e952f471f9895c3 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 2 Nov 2012 16:09:05 +0000 Subject: [PATCH] fetcher: create a different SparkleShare.txt message for encrypted projects --- SparkleLib/SparkleFetcherBase.cs | 27 +++++++++++---------------- SparkleShare/Mac/Growl.plist | 16 ---------------- 2 files changed, 11 insertions(+), 32 deletions(-) delete mode 100755 SparkleShare/Mac/Growl.plist diff --git a/SparkleLib/SparkleFetcherBase.cs b/SparkleLib/SparkleFetcherBase.cs index 8fd0fd16..74605def 100755 --- a/SparkleLib/SparkleFetcherBase.cs +++ b/SparkleLib/SparkleFetcherBase.cs @@ -210,23 +210,18 @@ namespace SparkleLib { uri_builder.Password = ""; } - bool repo_is_encrypted = RemoteUrl.AbsolutePath.Contains ("-crypto"); - string text; + string text = "Congratulations, you've successfully created a SparkleShare repository!" + n + + n + + "Any files you add or change in this folder will be automatically synced to " + n + + uri_builder.ToString () + " and everyone connected to it." + n + + n + + "SparkleShare is an Open Source software program that helps people collaborate and " + n + + "share files. If you like what we do, consider buying us a beer: http://www.sparkleshare.org/" + n + + n + + "Have fun! :)" + n; - if (repo_is_encrypted) { - text = GenerateCryptoSalt () + " Secret project! " + GenerateCryptoSalt (); - - } else { - text = "Congratulations, you've successfully created a SparkleShare repository!" + n + - n + - "Any files you add or change in this folder will be automatically synced to " + n + - uri_builder.ToString () + " and everyone connected to it." + n + - n + - "SparkleShare is an Open Source software program that helps people collaborate and " + n + - "share files. If you like what we do, consider buying us a beer: http://www.sparkleshare.org/" + n + - n + - "Have fun! :)" + n; - } + if (RemoteUrl.AbsolutePath.Contains ("-crypto")) + text = text.Replace ("a SparkleShare repository", "an encrypted SparkleShare repository"); File.WriteAllText (file_path, text); } diff --git a/SparkleShare/Mac/Growl.plist b/SparkleShare/Mac/Growl.plist deleted file mode 100755 index af7016e0..00000000 --- a/SparkleShare/Mac/Growl.plist +++ /dev/null @@ -1,16 +0,0 @@ - - - - - TicketVersion - 1 - AllNotifications - - Event - - DefaultNotifications - - Event - - -