error: code install-extension command inside rpm package in OpenEuler(Centos)

I met a funny error. In my case, I have many vscode extension(vsix) files, and I want to build a rpm package with rpmbuild, and then I can install the vsix-s with this rpm package. So I build a hello world spec with this helloworld tutorial.
https://www.redhat.com/en/blog/create-rpm-package

Then inside the %post setion, I just add a vscode command line to install an demo vsix file, like this:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>%post
/home/user/.vscode-server/cli/servers/Stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/server/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix
</code>
<code>%post /home/user/.vscode-server/cli/servers/Stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/server/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix </code>
%post
/home/user/.vscode-server/cli/servers/Stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/server/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix

Then I build the rpm package. I start vscode, and try to install with this rpm pakcage in vscode terminal, but meet an error:

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>+ /home/user/.vscode-server/cli/servers/Stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/server/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix
Command is only available in WSL or inside a Visual Studio Code terminal.
</code>
<code>+ /home/user/.vscode-server/cli/servers/Stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/server/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix Command is only available in WSL or inside a Visual Studio Code terminal. </code>
+ /home/user/.vscode-server/cli/servers/Stable-fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/server/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix
Command is only available in WSL or inside a Visual Studio Code terminal.

Actually I can build and install the same rpm package in Ubuntu successfully,

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>wyl@LAPTOP-I0C369CM:~$ rpm -ivh hello-0.1-1.x86_64.rpm --nodeps
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Verifying... ################################# [100%]
Preparing... ################################# [100%]
Updating / installing...
1:hello-0.1-1 ################################# [100%]
Installing extension in WSL: Ubuntu-22.04
successfully install “soft-realtime-1.0.94.vsix”。
installation finished!
</code>
<code>wyl@LAPTOP-I0C369CM:~$ rpm -ivh hello-0.1-1.x86_64.rpm --nodeps rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... Verifying... ################################# [100%] Preparing... ################################# [100%] Updating / installing... 1:hello-0.1-1 ################################# [100%] Installing extension in WSL: Ubuntu-22.04 … successfully install “soft-realtime-1.0.94.vsix”。 installation finished! </code>
wyl@LAPTOP-I0C369CM:~$ rpm -ivh hello-0.1-1.x86_64.rpm --nodeps
rpm: RPM should not be used directly install RPM packages, use Alien instead!
rpm: However assuming you know what you are doing...
Verifying...                          ################################# [100%]
Preparing...                          ################################# [100%]
Updating / installing...
   1:hello-0.1-1                      ################################# [100%]
Installing extension in WSL: Ubuntu-22.04 …
successfully install “soft-realtime-1.0.94.vsix”。
installation finished!

but not in openEuler. Can someone help? Thanks

p.s.
This is the demo spec file.

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
<code>[user@localhost spec]$ cat helloworld.spec
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Summary: hello world rpm package
Name: hello
Version: 0.1
Release: 1
Source: hello-0.1.tar.gz
License: GPL
Packager: wyl
Group: Application
%define debug_package %{nil}
%define _unpackaged_files_terminate_build 0
%description
This is a simple example for rpm package!
%prep
%setup -q
%build
gcc -o hello hello.c
%install
mkdir -p %{buildroot}/usr/local/bin
#cp thirdp.ko %{buildroot}/usr/local/
#install -m 755 hello %{buildroot}/usr/local/bin/hello
%files
#/usr/local/bin/hello
%post
$HOME/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix
echo 'installation finished!'
</code>
<code>[user@localhost spec]$ cat helloworld.spec BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root Summary: hello world rpm package Name: hello Version: 0.1 Release: 1 Source: hello-0.1.tar.gz License: GPL Packager: wyl Group: Application %define debug_package %{nil} %define _unpackaged_files_terminate_build 0 %description This is a simple example for rpm package! %prep %setup -q %build gcc -o hello hello.c %install mkdir -p %{buildroot}/usr/local/bin #cp thirdp.ko %{buildroot}/usr/local/ #install -m 755 hello %{buildroot}/usr/local/bin/hello %files #/usr/local/bin/hello %post $HOME/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix echo 'installation finished!' </code>
[user@localhost spec]$ cat helloworld.spec
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root
Summary:    hello world rpm package
Name:       hello
Version:    0.1
Release:    1
Source:     hello-0.1.tar.gz
License:    GPL
Packager:   wyl
Group:      Application

%define debug_package %{nil}
%define _unpackaged_files_terminate_build 0

%description
This is a simple example for rpm package!

%prep
%setup -q

%build
gcc -o hello hello.c

%install

mkdir -p %{buildroot}/usr/local/bin
#cp thirdp.ko %{buildroot}/usr/local/
#install -m 755 hello %{buildroot}/usr/local/bin/hello
%files
#/usr/local/bin/hello

%post
$HOME/.vscode-server/bin/fee1edb8d6d72a0ddff41e5f71a671c23ed924b9/bin/remote-cli/code --install-extension /tmp/soft-realtime-1.0.94.vsix
echo 'installation finished!'

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật