@@ -10,6 +10,9 @@ grunt.loadNpmTasks 'grunt-download-electron'
1010
1111version = require (' ./package.json' ).version
1212
13+ certificateFile = ' algorithm.pfx'
14+ certificatePassword = ' '
15+
1316grunt .initConfig
1417 clean :
1518 build : ' build'
@@ -23,7 +26,7 @@ grunt.initConfig
2326 command : path .resolve (__dirname , ' build' , ' birdex.exe' )
2427
2528 ' download-electron' :
26- version : ' 0.36.3 '
29+ version : ' 0.36.8 '
2730 outputDir : ' electron'
2831
2932 copy :
@@ -40,6 +43,11 @@ grunt.initConfig
4043 cwd : ' app/'
4144 src : [' *' , ' node_modules/**' ]
4245 dest : ' build/resources/app/'
46+ releases :
47+ expand : true
48+ cwd : ' release/'
49+ src : [' *' ]
50+ dest : ' release~/'
4351
4452 rcedit :
4553 exes :
@@ -69,8 +77,8 @@ grunt.initConfig
6977 owners : ' Algorithm Corporation L.P.'
7078 authors : ' Algorithm Corporation L.P.'
7179 remoteReleases : ' https://github.com/AlgorithmLLC/chat-client-electron'
72- certificateFile : ' algorithm.pfx '
73- certificatePassword : ' '
80+
81+ signWithParams : " /a /f \" #{ path . resolve (certificateFile) } \" /p \" #{ certificatePassword} \" /fd sha256 /tr http://timestamp.comodoca.com/?td=sha256 /td sha256 "
7482
7583grunt .registerTask ' build' , [' shell:kill' , ' clean' , ' download-electron' , ' copy' , ' rcedit' , ' shell:run' , ' shell:kill' ]
7684grunt .registerTask ' release' , [' shell:kill' , ' clean' , ' download-electron' , ' copy' , ' rcedit' , ' create-windows-installer' , ' clean:build' ]
0 commit comments