Spec changes
Some checks failed
Full Flutter CI / run-ci (push) Has been skipped
CI / ${{ matrix.job.target }} (${{ matrix.job.os }}) (map[os:ubuntu-20.04 target:x86_64-unknown-linux-gnu]) (push) Failing after 2m4s
Flutter Nightly Build / run-flutter-nightly-build (push) Has been skipped

This commit is contained in:
Сергей Конев 2024-10-14 17:04:08 +03:00
parent 5b4be72887
commit cf26111a6b
2 changed files with 24 additions and 2 deletions

0
res/inline-sciter.py Normal file → Executable file
View File

View File

@ -48,6 +48,10 @@ write your own rendezvous/relay server.
%setup
tar xf vendor.tar.gz
# used to inline all GUI stuff to binary (html/css)
chmod +x ./res/inline-sciter.py
./res/inline-sciter.py
mkdir -p ./.cargo
cat >> ./.cargo/config.toml <<EOF
[source.crates-io]
@ -180,14 +184,32 @@ EOF
%build
%rust_build --features linux-pkg-config
%rust_build --features linux-pkg-config,inline
%install
%rust_install
mkdir -p %{buildroot}/usr/lib/%name/
mkdir -p %_datadir/%name/files/
mkdir -p %_datadir/icons/hicolor/256x256/apps/
mkdir -p %_datadir/icons/hicolor/scalable/apps/
#install $HBB/libsciter-gtk.so %{buildroot}/usr/lib/rustdesk/libsciter-gtk.so
install ./res/%name.service %_datadir/%name/files/
install ./res/128x128@2x.png %_iconsdir/hicolor/256x256/apps/%name.png
install ./res/scalable.svg %_iconsdir/hicolor/scalable/apps/%name.svg
install ./res/%name.desktop %_datadir/%name/files/
install ./res/%name-link.desktop %_datadir/%name/files/
%check
%rust_test --skip test_get_cursor_pos --features linux-pkg-config
%rust_test --features linux-pkg-config,inline -- --skip test_get_cursor_pos
%files
%doc *.md
%_bindir/*
#/usr/lib/rustdesk/libsciter-gtk.so
%_datadir/%name/files/%name.service
%_iconsdir/hicolor/256x256/apps/%name.png
%_iconsdir/hicolor/scalable/apps/%name.svg
%_datadir/%name/files/%name.desktop
%_datadir/%name/files/%name-link.desktop