File tree Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Expand file tree Collapse file tree 4 files changed +16
-6
lines changed Original file line number Diff line number Diff line change 76
76
" RestoreBackend" ,
77
77
" TestBackend" ,
78
78
" TestExtension" ,
79
- " vsix "
79
+ " Vsix "
80
80
]
81
81
}
82
82
},
94
94
" RestoreBackend" ,
95
95
" TestBackend" ,
96
96
" TestExtension" ,
97
- " vsix "
97
+ " Vsix "
98
98
]
99
99
}
100
100
},
107
107
" Quiet" ,
108
108
" Verbose"
109
109
]
110
+ },
111
+ "Version" : {
112
+ "type" : " string" ,
113
+ "description" : " Release version to build"
110
114
}
111
115
}
112
116
}
Original file line number Diff line number Diff line change 16
16
before_build :
17
17
- cmd :
18
18
build_script :
19
- - cmd : build.cmd %appveyor_build_version%
19
+ - cmd : build.cmd vsix --version %appveyor_build_version%
20
20
artifacts :
21
21
- path : ' vscode-extension\*.vsix'
22
22
test : off
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ class Build : NukeBuild
27
27
[ Parameter ( "Configuration to build - Default is 'Debug' (local) or 'Release' (server)" ) ]
28
28
readonly Configuration Configuration = IsLocalBuild ? Configuration . Debug : Configuration . Release ;
29
29
30
+ [ Parameter ( "Release version to build" ) ]
31
+ readonly string Version ;
32
+
30
33
[ Solution ] readonly Solution BackendSolution ;
31
34
[ GitRepository ] readonly GitRepository GitRepository ;
32
35
@@ -97,10 +100,13 @@ class Build : NukeBuild
97
100
Npm ( "test" , VSCodeExtensionDir ) ;
98
101
} ) ;
99
102
100
- Target vsix => _ => _
103
+ Target Vsix => _ => _
101
104
. DependsOn ( Backend , CompileExtension )
102
105
. Executes ( ( ) =>
103
106
{
104
- StartProcess ( "vsce" , "package -o ilspy-vscode.vsix" , VSCodeExtensionDir ) ;
107
+ NpmInstall ( s => s
108
+ . SetPackages ( "vsce" )
109
+ . SetGlobal ( true ) ) ;
110
+ StartProcess ( "vsce" , $ "package -o ilspy-vscode-{ Version ?? "local" } .vsix", VSCodeExtensionDir ) ;
105
111
} ) ;
106
112
}
Original file line number Diff line number Diff line change 88
88
"typescript" : " ^4.1.3" ,
89
89
"vscode-test" : " ^1.5.0"
90
90
}
91
- }
91
+ }
You can’t perform that action at this time.
0 commit comments