Added a script for replacing the credentials via the environment variables which can be set before the build. Changed the way the build works, only if private-credentials files are stored they will be used where before there would be an error if none were available.

The current credentials files now have replacement tokens, a build without replacement will work but the credentials will be invalid.
This commit is contained in:
RKrom 2014-06-11 14:51:30 +02:00
commit 848c77890a
13 changed files with 77 additions and 176 deletions

View file

@ -22,10 +22,10 @@
namespace GreenshotPhotobucketPlugin {
/// <summary>
/// This class is merely a placeholder for the file keeping the API key and secret for photobucket integration.
/// Copy this file to PhotobucketCredentials.private.cs and fill in valid credentials. (Or empty strings, but of course you won't be able to use the Photobucket plugin then.)
/// You can set your own values here
/// </summary>
public static class PhotobucketCredentials {
public static string ConsumerKey = empty;
public static string ConsumerSecret = empty;
public static string ConsumerKey = "@credentials_photobucket_consumer_key@";
public static string ConsumerSecret = "@credentials_photobucket_consumer_secret@";
}
}