electron_version.tmpl 679 B

1234567891011121314151617181920212223
  1. // Copyright (c) 2019 Slack Technologies, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_ELECTRON_VERSION_H
  5. #define ELECTRON_ELECTRON_VERSION_H
  6. #define ELECTRON_MAJOR_VERSION $major
  7. #define ELECTRON_MINOR_VERSION $minor
  8. #define ELECTRON_PATCH_VERSION $patch
  9. #if $has_prerelease
  10. #define ELECTRON_PRE_RELEASE_VERSION -$prerelease
  11. #endif
  12. #ifndef ELECTRON_PRE_RELEASE_VERSION
  13. #define ELECTRON_VERSION_STRING "$major.$minor.$patch"
  14. #else
  15. #define ELECTRON_VERSION_STRING "$major.$minor.$patch-$prerelease"
  16. #endif
  17. #define ELECTRON_VERSION "v" ELECTRON_VERSION_STRING
  18. #endif // ELECTRON_ELECTRON_VERSION_H