Skip to content

Commit 0fe09bc

Browse files
committed
Add code signing to windows build
1 parent 526d0e8 commit 0fe09bc

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

presenter-app/sign.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
exports.default = async function(configuration) {
2+
3+
const login = process.env.KV_LOGIN;
4+
const password = process.env.KV_PASSWORD;
5+
const url = process.env.KV_URL;
6+
const keyname = process.env.KV_KEYNAME;
7+
8+
require("child_process").execSync(
9+
`AzureSignTool.exe sign -kvu ${url} -kvi ${login} -kvs ${password} -kvc ${keyname} -tr http://timestamp.digicert.com -v ${configuration.path}`,
10+
{
11+
stdio: "inherit"
12+
}
13+
);
14+
};

presenter-app/vue.config.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,16 @@ module.exports = {
1515
pluginOptions: {
1616
electronBuilder: {
1717
customFileProtocol: "plodo://./", // Make sure to add "./" to the end of the protocol
18+
copyright: "Copyright © 2020 plodo, part of thinkability ApS",
1819
builderOptions: {
19-
publish: ["github"]
20-
}
20+
publish: ["github"],
21+
win: {
22+
appId: "think.plodo.presenter",
23+
certificateSubjectName: "CN = Thinkability ApS, O = Thinkability ApS, STREET = Birk Centerpark 40, L = Herning, S = Midtjylland, PostalCode = 7400, C = DK",
24+
sign: "./sign.js",
25+
signDlls: true,
26+
}
27+
},
2128
}
2229
},
2330
configureWebpack: {

0 commit comments

Comments
 (0)