update to 1.82.2 [release 1.82.2-1mamba;Mon Sep 25 2023]

This commit is contained in:
Silvan Calarco 2024-01-05 19:07:14 +01:00
parent 3e93ecb95c
commit 8afedb784b
7 changed files with 192 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# visual-studio-code-bin
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET).

View File

@ -0,0 +1,5 @@
#!/bin/bash
VERSION=$1
[ "${VERSION}" ] || exit 1
curl -L "https://update.code.visualstudio.com/${VERSION}/linux-x64/stable" -o code_x64_${VERSION}.tar.gz
curl -L "https://update.code.visualstudio.com/${VERSION}/linux-arm64/stable" -o code_arm64_${VERSION}.tar.gz

View File

@ -0,0 +1,18 @@
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Refined.
GenericName=Text Editor
Exec=/usr/bin/code --unity-launch %F
Icon=code-bin
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=text/plain;inode/directory;application/x-visual-studio-code-workspace;
Actions=new-empty-window;
Keywords=vscode;
[Desktop Action new-empty-window]
Name=New Empty Window
Exec=/usr/bin/code --no-sandbox --new-window %F
Icon=code-bin

11
visual-studio-code-bin.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-~/.config}
# Allow users to override command-line options
if [[ -f $XDG_CONFIG_HOME/code-flags.conf ]]; then
CODE_USER_FLAGS="$(sed 's/#.*//' $XDG_CONFIG_HOME/code-flags.conf | tr '\n' ' ')"
fi
# Launch
exec /usr/share/code-bin/bin/code "$@" $CODE_USER_FLAGS

137
visual-studio-code-bin.spec Normal file
View File

@ -0,0 +1,137 @@
%define _pkgname code-bin
Name: visual-studio-code-bin
Version: 1.82.2
Release: 1mamba
Summary: Visual Studio Code: a lightweight but powerful source code editor which runs on your desktop (official binary distribution)
Group: Graphical Desktop/Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://code.visualstudio.com/
Source0: code_x64_%{version}.tar.gz
Source1: code_arm64_%{version}.tar.gz
Source2: visual-studio-code-bin-autoupdate
Source3: visual-studio-code-bin.desktop
Source4: visual-studio-code-url-handler.desktop
Source5: visual-studio-code-workspace.xml
Source6: visual-studio-code-bin.sh
License: Distributable
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libX11-devel
BuildRequires: libXcomposite-devel
BuildRequires: libXdamage-devel
BuildRequires: libXext-devel
BuildRequires: libXfixes-devel
BuildRequires: libXrandr-devel
BuildRequires: libalsa-devel
BuildRequires: libat-spi2-core-devel
BuildRequires: libcairo-devel
BuildRequires: libdbus-devel
BuildRequires: libdrm-devel
BuildRequires: libexpat-devel
BuildRequires: libgcc
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
BuildRequires: libkrb5-devel
BuildRequires: libmesa-devel
BuildRequires: libnspr-devel
BuildRequires: libnss-devel
BuildRequires: libpango-devel
BuildRequires: libsecret-devel
BuildRequires: libstdc++6-devel
BuildRequires: libxcb-devel
BuildRequires: libxkbcommon-devel
BuildRequires: libxkbfile-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
Provides: code-bin
Obsoletes: code-bin <= 1.81.1
%description
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET).
%debug_package
%global __requires_exclude ^libffmpeg.so.*$
%global __provides_exclude_from ^%{_datadir}/%{name}/.*$
%prep
%setup -q -c -T
%ifarch x86_64
tar xf %{SOURCE0}
%endif
%ifarch aarch64
tar xf %{SOURCE1}
%endif
mv VSCode-linux-*/* .
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
install -D -m644 resources/app/resources/linux/code.png %{buildroot}%{_datadir}/icons/%{_pkgname}.png
install -D -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{_pkgname}.desktop
install -D -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{_pkgname}-url-handler.desktop
install -D -m644 %{SOURCE5} %{buildroot}%{_datadir}/mime/packages/%{_pkgname}-workspace.xml
install -D -m644 resources/completions/bash/code %{buildroot}%{_datadir}/bash-completion/completions/code
install -D -m644 resources/completions/zsh/_code %{buildroot}%{_datadir}/zsh/site-functions/_code
install -d -m0755 %{buildroot}%{_datadir}/%{_pkgname}
cp -r * %{buildroot}%{_datadir}/%{_pkgname}
# Launcher
install -D -m755 %{SOURCE6} %{buildroot}%{_bindir}/code
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/code
%{_datadir}/applications/%{_pkgname}-url-handler.desktop
%{_datadir}/applications/%{_pkgname}.desktop
%{_datadir}/mime/packages/%{_pkgname}-workspace.xml
%dir %{_datadir}/%{_pkgname}
%dir %{_datadir}/%{_pkgname}/bin
%{_datadir}/%{_pkgname}/bin/code*
%{_datadir}/%{_pkgname}/chrome*
%{_datadir}/%{_pkgname}/code
%{_datadir}/%{_pkgname}/icudtl.dat
%{_datadir}/%{_pkgname}/lib*.so*
%{_datadir}/%{_pkgname}/resources.pak
%dir %{_datadir}/%{_pkgname}/locales
%{_datadir}/%{_pkgname}/locales/*
%dir %{_datadir}/%{_pkgname}/resources
%{_datadir}/%{_pkgname}/resources/*
%{_datadir}/%{_pkgname}/snapshot_blob.bin
%{_datadir}/%{_pkgname}/v8_context_snapshot.bin
%{_datadir}/%{_pkgname}/vk_swiftshader_icd.json
%{_datadir}/%{_pkgname}/LICENSES.chromium.html
%{_datadir}/bash-completion/completions/code
%{_datadir}/zsh/site-functions/_code
%{_datadir}/icons/%{_pkgname}.png
%doc resources/app/LICENSE.rtf
%changelog
* Mon Sep 25 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.82.2-1mamba
- update to 1.82.2
* Wed Aug 16 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.81.1-1mamba
- update to 1.81.1
* Fri Jun 09 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.79.0-1mamba
- update to 1.79.0
* Fri May 05 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.78.0-1mamba
- update to 1.78.0
* Tue Jan 31 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 1.74.3-1mamba
- update to 1.74.3
* Thu Sep 08 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.71.0-1mamba
- package created using the webbuild interface

View File

@ -0,0 +1,12 @@
[Desktop Entry]
Name=Visual Studio Code - URL Handler
Comment=Code Editing. Redefined.
GenericName=Text Editor
Exec=/usr/bin/code --open-url %U
Icon=code-bin
Type=Application
NoDisplay=true
StartupNotify=true
Categories=TextEditor;Development;IDE;
MimeType=x-scheme-handler/vscode;
Keywords=vscode;

View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/x-visual-studio-code-workspace">
<comment>Visual Studio Code Workspace</comment>
<glob pattern="*.code-workspace"/>
</mime-type>
</mime-info>