fetcher: create a different SparkleShare.txt message for encrypted projects
This commit is contained in:
parent
313de900e9
commit
4a570d50d0
|
@ -210,14 +210,7 @@ namespace SparkleLib {
|
|||
uri_builder.Password = "";
|
||||
}
|
||||
|
||||
bool repo_is_encrypted = RemoteUrl.AbsolutePath.Contains ("-crypto");
|
||||
string text;
|
||||
|
||||
if (repo_is_encrypted) {
|
||||
text = GenerateCryptoSalt () + " Secret project! " + GenerateCryptoSalt ();
|
||||
|
||||
} else {
|
||||
text = "Congratulations, you've successfully created a SparkleShare repository!" + n +
|
||||
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 +
|
||||
|
@ -226,7 +219,9 @@ namespace SparkleLib {
|
|||
"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);
|
||||
}
|
||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue