remove git clone

This commit is contained in:
wangkui 2024-10-10 16:19:04 +08:00
parent 69207ee685
commit 20de8d0343
6 changed files with 20 additions and 2 deletions

1
checksum Normal file
View File

@ -0,0 +1 @@
ba33958f74272b94a085d9724d87d08ea317793e1408cf1c17907990b386d64a vscode-1.93.1.tar.gz

BIN
vscode-1.93.1_aa Normal file

Binary file not shown.

BIN
vscode-1.93.1_ab Normal file

Binary file not shown.

BIN
vscode-1.93.1_ac Normal file

Binary file not shown.

BIN
vscode-1.93.1_ad Normal file

Binary file not shown.

View File

@ -2,7 +2,7 @@
Name: code
Version: 1.93.1
Release: 1
Release: 2
License: MIT
Group: Development/Tools
Summary: Code editing. Redefined.
@ -11,6 +11,12 @@ AutoReq: 0
%global __provides_exclude_from ^%{_datadir}/%{name}/.*\\.so.*$
Source0: vscode-%{version}_aa
Source1: vscode-%{version}_ab
Source2: vscode-%{version}_ac
Source3: vscode-%{version}_ad
Source4: %{name}.png
Patch1: vscode-name.patch
@ -44,9 +50,17 @@ Features include support for debugging, syntax highlighting, intelligent code co
snippets, code refactoring, and embedded Git.
%prep
pushd %{_sourcedir}
cat vscode-%{version}_a* > vscode-%{version}.tar.gz
sha256sum -c checksum
popd
rm -rf vscode-%{version}
mkdir -p vscode-%{version}
pushd vscode-%{version}
git clone https://gitee.com/microsoft/vscode .
tar -xf %{_sourcedir}/vscode-%{version}.tar.gz --strip-components=1
pwd | xargs git config --global --add safe.directory
git checkout %{version}
%patch1 -p1
@ -148,5 +162,8 @@ update-desktop-database
update-mime-database %{_datadir}/mime
%changelog
* Thu Oct 10 2024 wangkui <wangkui35@h-partner.com> - 1.93.1-2
- remove git clone
* Wed Oct 9 2024 wangkui <wangkui35@h-partner.com> - 1.93.1-1
- init