mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-15 09:35:37 -05:00
* Merge from vscode 504f934659740e9d41501cad9f162b54d7745ad9 * delete unused folders * distro * Bump build node version * update chokidar * FIx hygiene errors * distro * Fix extension lint issues * Remove strict-vscode * Add copyright header exemptions * Bump vscode-extension-telemetry to fix webpacking issue with zone.js * distro * Fix failing tests (revert marked.js back to current one until we decide to update) * Skip searchmodel test * Fix mac build * temp debug script loading * Try disabling coverage * log error too * Revert "log error too" This reverts commit af0183e5d4ab458fdf44b88fbfab9908d090526f. * Revert "temp debug script loading" This reverts commit 3d687d541c76db2c5b55626c78ae448d3c25089c. * Add comments explaining coverage disabling * Fix ansi_up loading issue * Merge latest from ads * Use newer option * Fix compile * add debug logging warn * Always log stack * log more * undo debug * Update to use correct base path (+cleanup) * distro * fix compile errors * Remove strict-vscode * Fix sql editors not showing * Show db dropdown input & fix styling * Fix more info in gallery * Fix gallery asset requests * Delete unused workflow * Fix tapable resolutions for smoke test compile error * Fix smoke compile * Disable crash reporting * Disable interactive Co-authored-by: ADS Merger <karlb@microsoft.com>
77 lines
2.9 KiB
Plaintext
77 lines
2.9 KiB
Plaintext
Name: @@NAME@@
|
|
Version: @@VERSION@@
|
|
Release: @@RELEASE@@.el7
|
|
Summary: Code editing. Redefined.
|
|
Group: Development/Tools
|
|
Vendor: Microsoft Corporation
|
|
Packager: Visual Studio Code Team <vscode-linux@microsoft.com>
|
|
License: @@LICENSE@@
|
|
URL: https://code.visualstudio.com/
|
|
Icon: @@NAME@@.xpm
|
|
Requires: @@DEPENDENCIES@@
|
|
AutoReq: 0
|
|
|
|
%description
|
|
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.
|
|
|
|
# Don't generate build_id links to prevent conflicts when installing multiple
|
|
# versions of VS Code alongside each other (e.g. `code` and `code-insiders`)
|
|
%define _build_id_links none
|
|
|
|
%install
|
|
mkdir -p %{buildroot}/usr/share/@@NAME@@
|
|
mkdir -p %{buildroot}/usr/share/applications
|
|
mkdir -p %{buildroot}/usr/share/pixmaps
|
|
mkdir -p %{buildroot}/usr/share/bash-completion/completions
|
|
mkdir -p %{buildroot}/usr/share/zsh/site-functions
|
|
mkdir -p %{buildroot}/usr/share/mime/packages
|
|
cp -r usr/share/@@NAME@@/* %{buildroot}/usr/share/@@NAME@@
|
|
cp -r usr/share/applications/@@NAME@@.desktop %{buildroot}/usr/share/applications
|
|
cp -r usr/share/applications/@@NAME@@-url-handler.desktop %{buildroot}/usr/share/applications
|
|
cp -r usr/share/mime/packages/@@NAME@@-workspace.xml %{buildroot}/usr/share/mime/packages/@@NAME@@-workspace.xml
|
|
cp -r usr/share/pixmaps/@@ICON@@.png %{buildroot}/usr/share/pixmaps
|
|
cp usr/share/bash-completion/completions/@@NAME@@ %{buildroot}/usr/share/bash-completion/completions/@@NAME@@
|
|
cp usr/share/zsh/site-functions/_@@NAME@@ %{buildroot}/usr/share/zsh/site-functions/_@@NAME@@
|
|
|
|
%post
|
|
# Remove the legacy bin command if this is the stable build
|
|
if [ "@@NAME@@" = "code" ]; then
|
|
rm -f /usr/local/bin/code
|
|
fi
|
|
|
|
# Symlink bin command to /usr/bin
|
|
ln -sf /usr/share/@@NAME@@/bin/@@NAME@@ %{_bindir}/@@NAME@@
|
|
|
|
# Register yum repository
|
|
# TODO: #229: Enable once the yum repository is signed
|
|
#if [ "@@NAME@@" != "code-oss" ]; then
|
|
# if [ -d "/etc/yum.repos.d" ]; then
|
|
# REPO_FILE=/etc/yum.repos.d/@@NAME@@.repo
|
|
# rm -f $REPO_FILE
|
|
# echo -e "[@@NAME@@]\nname=@@NAME_LONG@@\nbaseurl=@@UPDATEURL@@/api/rpm/@@QUALITY@@/@@ARCHITECTURE@@/rpm" > $REPO_FILE
|
|
# fi
|
|
#fi
|
|
|
|
# Update mimetype database to pickup workspace mimetype
|
|
update-mime-database /usr/share/mime &> /dev/null || :
|
|
|
|
%postun
|
|
if [ $1 = 0 ]; then
|
|
rm -f /usr/bin/@@NAME@@
|
|
fi
|
|
|
|
# Update mimetype database for removed workspace mimetype
|
|
update-mime-database /usr/share/mime &> /dev/null || :
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%attr(4755, root, root) /usr/share/@@NAME@@/chrome-sandbox
|
|
|
|
/usr/share/@@NAME@@/
|
|
/usr/share/applications/@@NAME@@.desktop
|
|
/usr/share/applications/@@NAME@@-url-handler.desktop
|
|
/usr/share/mime/packages/@@NAME@@-workspace.xml
|
|
/usr/share/pixmaps/@@ICON@@.png
|
|
/usr/share/bash-completion/completions/@@NAME@@
|
|
/usr/share/zsh/site-functions/_@@NAME@@
|