Move bin command to /usr/share/<app>/bin

/usr/bin/<app> now symlinks to the launcher. This makes the CLI
accessible in the zip archive version.

Fixes #4426
This commit is contained in:
Daniel Imms
2016-04-04 16:25:12 -07:00
parent db6f2c3a53
commit 6e113d01f0
3 changed files with 11 additions and 5 deletions

View File

@@ -3,6 +3,10 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Symlink bin command to /usr/bin
rm -f /usr/bin/@@NAME@@
ln -s /usr/share/@@NAME@@/bin/@@NAME@@ /usr/bin/@@NAME@@
# Register code in the alternatives system
# Priority of 0 should never make code the default editor in auto mode as most
# developers would prefer a terminal editor as the default.