Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-4966 Refactor the desktop entry #4971

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions launcher/package/rpm/MultiMC5.spec
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ A local install wrapper for MultiMC

%install
mkdir -p %{buildroot}/opt/multimc
install -m 0644 ../ubuntu/multimc/opt/multimc/icon.svg %{buildroot}/opt/multimc/icon.svg
install -m 0755 ../ubuntu/multimc/opt/multimc/run.sh %{buildroot}/opt/multimc/run.sh
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps
install -m 0644 ../ubuntu/multimc/usr/share/icons/hicolor/48x48/apps/multimc.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/multimc.png
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
install -m 0644 ../ubuntu/multimc/usr/share/icons/hicolor/scalable/apps/multimc.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/multimc.svg
mkdir -p %{buildroot}/%{_datadir}/applications
desktop-file-install --dir=%{buildroot}%{_datadir}/applications ../ubuntu/multimc/usr/share/applications/multimc.desktop

Expand All @@ -41,8 +44,11 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/multimc.metain

%files
%dir /opt/multimc
/opt/multimc/icon.svg
/opt/multimc/run.sh
%dir %{_datadir}/icons/hicolor/48x48/apps
%{_datadir}/icons/hicolor/48x48/apps/multimc.png
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/multimc.svg
%{_datadir}/applications/multimc.desktop
%{_metainfodir}/multimc.metainfo.xml
%dir %{_mandir}/man1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[Desktop Entry]
Categories=Game;
Exec=/opt/multimc/run.sh
Icon=/opt/multimc/icon.svg
Icon=multimc
Keywords=game;Minecraft;
MimeType=
Name=MultiMC 5
Path=
StartupNotify=true
StartupWMClass=org.multimc.MultiMC
Terminal=false
TerminalOptions=
Type=Application
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.