Code signing implemented

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 10 years ago
parent 9a1c88e0df
commit d49dcf85f1
  1. 5
      BuildServer/lib/tasks/dotnetbuild.js
  2. 3
      BuildServer/lib/tasks/dotnetpack.js
  3. 6
      BuildServer/lib/tasks/dotnetrewrite.js

@ -9,7 +9,10 @@ module.exports = function (params, processor) {
type: "dotnetcheckstyle" type: "dotnetcheckstyle"
}, },
{ {
type: "dotnetrewrite" type: "dotnetrewrite",
params: {
skipCodeSigning: params.skipCodeSigning
}
}, },
{ {
type: "dotnetbuilderwrapper", type: "dotnetbuilderwrapper",

@ -7,6 +7,9 @@ module.exports = function (params, processor) {
tasks: [ tasks: [
{ {
type: "dotnetrewrite", type: "dotnetrewrite",
params: {
skipCodeSigning: params.skipCodeSigning
}
}, },
{ {
type: "dotnetbuilderwrapper", type: "dotnetbuilderwrapper",

@ -3,6 +3,7 @@
var fs = require('fs'); var fs = require('fs');
var async = require('async'); var async = require('async');
var glob = require('glob'); var glob = require('glob');
var settings = require('../../settings');
module.exports = function (params, processor) { module.exports = function (params, processor) {
return { return {
@ -22,7 +23,10 @@ module.exports = function (params, processor) {
"repository: " + processor.context.owner + "/" + processor.context.reponame + "; " + "repository: " + processor.context.owner + "/" + processor.context.reponame + "; " +
"branch: " + processor.context.branch + ")"; "branch: " + processor.context.branch + ")";
var textToAppend = "\r\n[assembly: AssemblyInformationalVersion(\"" + version + "\")]\r\n" var textToAppend = "\r\n[assembly: AssemblyInformationalVersion(\"" + version + "\")]\r\n";
if (!params.skipCodeSigning && !settings.skipCodeSigning) {
textToAppend += "[assembly: AssemblyKeyFileAttribute(\"" + settings.codeSigningKey + "\")]\r\n";
}
glob("**/AssemblyInfo.cs", {cwd: processor.context.exported}, function (err, files) { glob("**/AssemblyInfo.cs", {cwd: processor.context.exported}, function (err, files) {
if (err) { if (err) {

Loading…
Cancel
Save