Skip to content

Commit a7a499a

Browse files
committed
fix authenticode
1 parent b646313 commit a7a499a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

gruntfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if (process.platform === 'darwin') {
77
}
88

99
module.exports = function (grunt) {
10+
if (process.platform === 'win32') auth_code = grunt.file.readJSON('secret/auth_code.json')
11+
1012
var initConfig = {
1113
pkg: grunt.file.readJSON('package.json'),
1214
'create-windows-installer': {
@@ -18,13 +20,12 @@ module.exports = function (grunt) {
1820
loadingGif: path.join(__dirname, 'resources/boostnote-install.gif'),
1921
iconUrl: path.join(__dirname, 'resources/app.ico'),
2022
setupIcon: path.join(__dirname, 'resources/dmg.ico'),
21-
certificateFile: grunt.config.get('auth_code.win_cert_path'),
22-
certificatePassword: grunt.config.get('auth_code.win_cert_pw'),
23+
certificateFile: path.join(__dirname, 'secret', 'authenticode_cer.p12'),
24+
certificatePassword: auth_code.win_cert_pw,
2325
noMsi: true
2426
}
2527
}
2628
}
27-
if (process.platform === 'win32') initConfig.auth_code = grunt.file.readJSON('secret/auth_code.json')
2829
grunt.initConfig(initConfig)
2930

3031
grunt.loadNpmTasks('grunt-electron-installer')

0 commit comments

Comments
 (0)