-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdeploy.cmd
More file actions
33 lines (25 loc) · 773 Bytes
/
deploy.cmd
File metadata and controls
33 lines (25 loc) · 773 Bytes
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
@echo off
:: https://code.visualstudio.com/docs/extensions/publish-extension
:: https://code.visualstudio.com/docs/editor/extension-gallery#_install-from-a-vsix
call npm install
call npm install --location=global vsce
call vsce ls
echo Review the files included before you continue
pause
if not exist vsix-archive mkdir vsix-archive
move /Y *.vsix vsix-archive
call vsce package
set vsix_count=0
for %%A in (*.vsix) do set /a vsix_count+=1
if not %vsix_count% == 1 (
echo Found unexpected number of .vsix files: %vsix_count%
exit /B 1
)
set vsix_name=not_found
for %%f in (*.vsix) do (
set vsix_name=%%f
)
echo Installing the extension locally...
echo Installing %vsix_name%
call code --install-extension %vsix_name%
echo Done. Test the extension now.