-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathGruntfile.js
36 lines (33 loc) · 1.25 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
var grunt=require('grunt');
//配置
grunt.config.init({
pkg: grunt.file.readJSON('gruntPackage.json'),
'create-windows-installer': {
x64:{
version:'1.0.1',
authors:'wenjie',
appDirectory:'./OutApp/proxy-win32-x64',//要打包的输入目录
outputDirectory:'./OutPut/win64/',//grunt打包后的输出目录
exe:'proxy.exe',
description:'Wenjie Development of Intranet penetration tools',
setupIcon:'./src/icon/[email protected]',
remoteReleases:'http://downloads.tryto.cn/proxy/new/win64/',
noMsi:true
},
x32:{
version:'1.0.1',
authors:'wenjie',
appDirectory:'./OutApp/proxy-win32-ia32',//要打包的输入目录
outputDirectory:'./OutPut/win32/',//grunt打包后的输出目录
exe:'proxy.exe',
description:'Wenjie Development of Intranet penetration tools',
setupIcon:'./src/icon/[email protected]',
remoteReleases:'http://downloads.tryto.cn/proxy/new/win32/',
noMsi:true
},
}
});
//加载任务
grunt.loadNpmTasks('grunt-electron-installer');
//设置为默认
grunt.registerTask('default', ['create-windows-installer']);