Spec changes
This commit is contained in:
parent
5b4be72887
commit
cf26111a6b
0
res/inline-sciter.py
Normal file → Executable file
0
res/inline-sciter.py
Normal file → Executable 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
|
||||
|
Loading…
Reference in New Issue
Block a user