Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions make.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,6 +952,14 @@ def _create_launchers(self):
args=r'Noshell.vbs winpyzo.bat',
)

# VSCode launcher
self.create_launcher(
'VS Code.exe',
'code.ico',
command='wscript.exe',
args=r'Noshell.vbs winvscode.bat',
)

self._print_done()

def _create_batch_scripts_initial(self):
Expand Down Expand Up @@ -1746,7 +1754,21 @@ def _create_batch_scripts(self):
stdout, stderr = p.communicate()

self._print_done()

self.create_batch_script(
'winvscode.bat',
r"""@echo off
rem launcher for VScode
call "%~dp0env_for_icons.bat"
cd/D "%WINPYWORKDIR%"
if exist "%WINPYDIR%\..\t\vscode\code.exe" (
"%WINPYDIR%\..\t\vscode\code.exe" %*
) else (
"code.exe" %*
)

""",
)
def _run_complement_batch_scripts(
self, this_batch="run_complement.bat"
):
Expand Down
Binary file added portable/icons/code.ico
Binary file not shown.
2 changes: 1 addition & 1 deletion winpython/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
OTHER DEALINGS IN THE SOFTWARE.
"""

__version__ = '2.0.20190519'
__version__ = '2.1.20190830'
__license__ = __doc__
__project_url__ = 'http://winpython.github.io/'