vscode: fix symlink to executable (#123811)

Co-authored-by: Patrick Hilhorst <git@hilhorst.be>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
Thirst Man 2021-05-23 10:54:50 -05:00 committed by GitHub
parent a28153eeb5
commit 3a3543edd4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -77,7 +77,7 @@ let
'' + (if system == "x86_64-darwin" then ''
mkdir -p "$out/Applications/${longName}.app" $out/bin
cp -r ./* "$out/Applications/${longName}.app"
ln -s "$out/Applications/${longName}.app/Contents/Resources/app/bin/code" $out/bin/${executableName}
ln -s "$out/Applications/${longName}.app/Contents/Resources/app/bin/${executableName}" $out/bin/${executableName}
'' else ''
mkdir -p $out/lib/vscode $out/bin
cp -r ./* $out/lib/vscode
@ -159,4 +159,3 @@ let
};
in
unwrapped