Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

Commit

Permalink
Separated nuget/component version #'s
Browse files Browse the repository at this point in the history
  • Loading branch information
Redth committed Mar 3, 2016
1 parent 0c122fc commit 41309f1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions build.cake
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#addin nuget:?package=Cake.Xamarin
#addin nuget:?package=Cake.FileHelpers

var VERSION = "4.0.0";
var COMPONENT_VERSION = "4.0.0";
var NUGET_VERSION = "4.0.0-alpha1";

var ANDROID_URL = "https://download.hockeyapp.net/preseason/sdk/android/4.0.0-alpha.1/HockeySDK-Android-4.0.0-alpha.1.zip";
var IOS_URL = "https://download.hockeyapp.net/preseason/sdk/ios/HockeySDK-iOS-4.0.0-alpha.1.zip";
Expand Down Expand Up @@ -74,7 +75,7 @@ Task ("nuget")
var basePath = IsRunningOnUnix () ? "././" : "./";

NuGetPack ("./HockeySDK.nuspec", new NuGetPackSettings {
Version = VERSION,
Version = NUGET_VERSION,
BasePath = basePath,
Verbosity = NuGetVerbosity.Detailed,
});
Expand All @@ -87,7 +88,7 @@ Task ("components")
var yamls = GetFiles ("./**/component.template.yaml");

foreach (var yaml in yamls) {
var contents = FileReadText (yaml).Replace ("$version$", VERSION);
var contents = FileReadText (yaml).Replace ("$version$", COMPONENT_VERSION);

var fixedFile = yaml.GetDirectory ().CombineWithFilePath ("component.yaml");
FileWriteText (fixedFile, contents);
Expand Down

0 comments on commit 41309f1

Please sign in to comment.