Skip to content

Commit

Permalink
vscode: Add compat symlinks
Browse files Browse the repository at this point in the history
Closes #1948

Signed-off-by: Reilly Brogan <reilly@reillybrogan.com>
  • Loading branch information
ReillyBrogan committed Mar 28, 2024
1 parent a67dbbb commit e649102
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
6 changes: 5 additions & 1 deletion packages/v/vscode/package.yml
@@ -1,6 +1,6 @@
name : vscode
version : 1.87.2
release : 210
release : 211
source :
- git|https://github.com/Microsoft/vscode.git : 1.87.2
homepage : https://code.visualstudio.com/
Expand Down Expand Up @@ -65,6 +65,10 @@ install : |
install -Dm00644 $installdir/$vsdir/resources/completions/bash/code-oss $installdir/usr/share/bash-completion/completions/code-oss
install -Dm00644 $installdir/$vsdir/resources/completions/zsh/_code-oss $installdir/usr/share/zsh/site-functions/_code-oss
# Increase compatibility with official distribution
ln -s code-oss $installdir/usr/bin/code
ln -s code-oss $installdir/$vsdir/bin/code
# Fix Wayland/Xorg window associations
sed -i 's|Code - OSS|code-oss|g' $installdir/$vsdir/resources/app/package.json
sed -i 's|code-oss-url-handler.desktop|code-oss.desktop|g' $installdir/$vsdir/resources/app/package.json
Expand Down
14 changes: 8 additions & 6 deletions packages/v/vscode/pspec_x86_64.xml
Expand Up @@ -3,8 +3,8 @@
<Name>vscode</Name>
<Homepage>https://code.visualstudio.com/</Homepage>
<Packager>
<Name>Troy Harvey</Name>
<Email>harveydevel@gmail.com</Email>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
</Packager>
<License>GPL-3.0-or-later</License>
<License>MIT</License>
Expand All @@ -21,6 +21,7 @@
</Description>
<PartOf>programming.ide</PartOf>
<Files>
<Path fileType="executable">/usr/bin/code</Path>
<Path fileType="executable">/usr/bin/code-oss</Path>
<Path fileType="data">/usr/share/applications/code-oss-url-handler.desktop</Path>
<Path fileType="data">/usr/share/applications/code-oss.desktop</Path>
Expand All @@ -29,6 +30,7 @@
<Path fileType="data">/usr/share/metainfo/com.visualstudio.code.appdata.xml</Path>
<Path fileType="data">/usr/share/mime/packages/code-workspace.xml</Path>
<Path fileType="data">/usr/share/vscode/LICENSES.chromium.html</Path>
<Path fileType="data">/usr/share/vscode/bin/code</Path>
<Path fileType="data">/usr/share/vscode/bin/code-oss</Path>
<Path fileType="data">/usr/share/vscode/chrome-sandbox</Path>
<Path fileType="data">/usr/share/vscode/chrome_100_percent.pak</Path>
Expand Down Expand Up @@ -1010,12 +1012,12 @@
</Replaces>
</Package>
<History>
<Update release="210">
<Date>2024-03-12</Date>
<Update release="211">
<Date>2024-03-28</Date>
<Version>1.87.2</Version>
<Comment>Packaging update</Comment>
<Name>Troy Harvey</Name>
<Email>harveydevel@gmail.com</Email>
<Name>Reilly Brogan</Name>
<Email>solus@reillybrogan.com</Email>
</Update>
</History>
</PISI>

0 comments on commit e649102

Please sign in to comment.