Skip to content

Commit

Permalink
Store additional files in RPM package (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
moubctez authored Jan 8, 2025
1 parent 41a619b commit db34e77
Show file tree
Hide file tree
Showing 16 changed files with 31 additions and 1 deletion.
7 changes: 7 additions & 0 deletions resources-linux/defguard-client.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Categories=Utility;
Exec=defguard-client
Icon=defguard-client
Name=defguard-client
Terminal=false
Type=Application
25 changes: 24 additions & 1 deletion resources-linux/defguard-client.spec
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,25 @@ Requires: libappindicator-gtk3 webkit2gtk4.0
Desktop client for managing WireGuard VPN connections

%install
%{__mkdir} -p %{buildroot}/%{_bindir} %{buildroot}/%{_sbindir} %{buildroot}/%{_prefix}/lib/systemd/system
%{__mkdir} -p %{buildroot}/%{_bindir}
%{__mkdir} -p %{buildroot}/%{_sbindir}
%{__mkdir} -p %{buildroot}/%{_prefix}/lib/systemd/system
%{__mkdir} -p %{buildroot}/%{_prefix}/lib/defguard-client/resources/icons
%{__mkdir} -p %{buildroot}/%{_datadir}/applications
%{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps
%{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/256x256@2/apps
%{__mkdir} -p %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps
%{__install} -m 755 src-tauri/target/release/defguard-client %{buildroot}/%{_bindir}/
%{__install} -m 755 src-tauri/target/release/defguard-service %{buildroot}/%{_sbindir}/
%{__install} -m 644 src-tauri/target/release/resources/icons/tray-32x32-black.png %{buildroot}/%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-black.png
%{__install} -m 644 src-tauri/target/release/resources/icons/tray-32x32-color.png %{buildroot}/%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-color.png
%{__install} -m 644 src-tauri/target/release/resources/icons/tray-32x32-gray.png %{buildroot}/%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-gray.png
%{__install} -m 644 src-tauri/target/release/resources/icons/tray-32x32-white.png %{buildroot}/%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-white.png
%{__install} -m 644 resources-linux/defguard-service.service %{buildroot}/%{_prefix}/lib/systemd/system/
%{__install} -m 644 resources-linux/defguard-client.desktop %{buildroot}/%{_datadir}/applications/defguard-client.desktop
%{__install} -m 644 src-tauri/icons/128x128.png %{buildroot}/%{_datadir}/icons/hicolor/128x128/apps/defguard-client.png
%{__install} -m 644 src-tauri/icons/[email protected] %{buildroot}/%{_datadir}/icons/hicolor/256x256@2/apps/defguard-client.png
%{__install} -m 644 src-tauri/icons/32x32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/defguard-client.png

%post
# %{systemd_post} defguard-service.service
Expand All @@ -38,4 +53,12 @@ systemctl daemon-reload
%files
%{_bindir}/defguard-client
%{_sbindir}/defguard-service
%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-black.png
%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-color.png
%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-gray.png
%{_prefix}/lib/defguard-client/resources/icons/tray-32x32-white.png
%{_prefix}/lib/systemd/system/defguard-service.service
%{_datadir}/applications/defguard-client.desktop
%{_datadir}/icons/hicolor/128x128/apps/defguard-client.png
%{_datadir}/icons/hicolor/256x256@2/apps/defguard-client.png
%{_datadir}/icons/hicolor/32x32/apps/defguard-client.png
Binary file modified src-tauri/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square107x107Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square142x142Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square150x150Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square284x284Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square30x30Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square310x310Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square44x44Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square71x71Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/Square89x89Logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src-tauri/icons/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit db34e77

Please sign in to comment.