Skip to content

Commit

Permalink
(maint) Additional version environment variables
Browse files Browse the repository at this point in the history
Add additional environment variables for prerelease version and the
upcoming package release version.
  • Loading branch information
ferventcoder committed Mar 16, 2017
1 parent 3571604 commit e991fbc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,9 @@ public void prepare_powershell_environment(IPackage package, ChocolateyConfigura
Environment.SetEnvironmentVariable("packageTitle", package.Title);
Environment.SetEnvironmentVariable("chocolateyPackageVersion", package.Version.to_string());
Environment.SetEnvironmentVariable("packageVersion", package.Version.to_string());
Environment.SetEnvironmentVariable("chocolateyPackageVersionPrerelease", package.Version.SpecialVersion.to_string());
Environment.SetEnvironmentVariable("chocolateyPackageVersionPackageRelease", package.Version.PackageReleaseVersion.to_string());

Environment.SetEnvironmentVariable("chocolateyPackageFolder", packageDirectory);
Environment.SetEnvironmentVariable("packageFolder", packageDirectory);

Expand Down

0 comments on commit e991fbc

Please sign in to comment.