mirror of
https://github.com/2dust/v2rayN.git
synced 2026-02-28 05:03:02 +00:00
Update package-rhel.sh
This commit is contained in:
parent
db96542ff6
commit
10212a2ff6
1 changed files with 0 additions and 7 deletions
|
|
@ -577,12 +577,6 @@ https://github.com/2dust/v2rayN
|
||||||
install -dm0755 %{buildroot}/opt/v2rayN
|
install -dm0755 %{buildroot}/opt/v2rayN
|
||||||
cp -a * %{buildroot}/opt/v2rayN/
|
cp -a * %{buildroot}/opt/v2rayN/
|
||||||
|
|
||||||
install -dm0755 %{buildroot}%{_sysconfdir}/sudoers.d
|
|
||||||
cat > %{buildroot}%{_sysconfdir}/sudoers.d/v2rayn-mihomo-deny << 'EOF'
|
|
||||||
ALL ALL=(ALL) !/home/*/.local/share/v2rayN/bin/mihomo/mihomo
|
|
||||||
EOF
|
|
||||||
chmod 0440 %{buildroot}%{_sysconfdir}/sudoers.d/v2rayn-mihomo-deny
|
|
||||||
|
|
||||||
# Launcher (prefer native ELF first, then DLL fallback)
|
# Launcher (prefer native ELF first, then DLL fallback)
|
||||||
install -dm0755 %{buildroot}%{_bindir}
|
install -dm0755 %{buildroot}%{_bindir}
|
||||||
cat > %{buildroot}%{_bindir}/v2rayn << 'EOF'
|
cat > %{buildroot}%{_bindir}/v2rayn << 'EOF'
|
||||||
|
|
@ -636,7 +630,6 @@ fi
|
||||||
/opt/v2rayN
|
/opt/v2rayN
|
||||||
%{_datadir}/applications/v2rayn.desktop
|
%{_datadir}/applications/v2rayn.desktop
|
||||||
%{_datadir}/icons/hicolor/256x256/apps/v2rayn.png
|
%{_datadir}/icons/hicolor/256x256/apps/v2rayn.png
|
||||||
%config(noreplace) /etc/sudoers.d/v2rayn-mihomo-deny
|
|
||||||
SPEC
|
SPEC
|
||||||
|
|
||||||
# Autostart injection (inside %install) and %files entry
|
# Autostart injection (inside %install) and %files entry
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue