flags.js 794 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.isAutoDiscoveryCodeSignIdentity = exports.isBuildCacheEnabled = exports.isUseSystemSigncode = void 0;
  4. const builder_util_1 = require("builder-util");
  5. function isUseSystemSigncode() {
  6. return (0, builder_util_1.isEnvTrue)(process.env.USE_SYSTEM_SIGNCODE);
  7. }
  8. exports.isUseSystemSigncode = isUseSystemSigncode;
  9. function isBuildCacheEnabled() {
  10. return !(0, builder_util_1.isEnvTrue)(process.env.ELECTRON_BUILDER_DISABLE_BUILD_CACHE);
  11. }
  12. exports.isBuildCacheEnabled = isBuildCacheEnabled;
  13. function isAutoDiscoveryCodeSignIdentity() {
  14. return process.env.CSC_IDENTITY_AUTO_DISCOVERY !== "false";
  15. }
  16. exports.isAutoDiscoveryCodeSignIdentity = isAutoDiscoveryCodeSignIdentity;
  17. //# sourceMappingURL=flags.js.map