fetcher: create a different SparkleShare.txt message for encrypted projects

This commit is contained in:
Hylke Bons 2012-11-02 16:09:05 +00:00
parent db2634051f
commit 9a916ff267
2 changed files with 11 additions and 32 deletions

View file

@ -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);
}

View file

@ -1,16 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>TicketVersion</key>
<integer>1</integer>
<key>AllNotifications</key>
<array>
<string>Event</string>
</array>
<key>DefaultNotifications</key>
<array>
<string>Event</string>
</array>
</dict>
</plist>