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
|
%setup
|
||||||
tar xf vendor.tar.gz
|
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
|
mkdir -p ./.cargo
|
||||||
cat >> ./.cargo/config.toml <<EOF
|
cat >> ./.cargo/config.toml <<EOF
|
||||||
[source.crates-io]
|
[source.crates-io]
|
||||||
@ -180,14 +184,32 @@ EOF
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%rust_build --features linux-pkg-config
|
%rust_build --features linux-pkg-config,inline
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%rust_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
|
%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
|
%files
|
||||||
%doc *.md
|
%doc *.md
|
||||||
|
|
||||||
%_bindir/*
|
%_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