Skip to content

Commit

Permalink
Install the tiled.appdata.xml file
Browse files Browse the repository at this point in the history
This makes sure that it is included in the AppImage for example, so that
the entry for Tiled at https://appimage.github.io/Tiled/ can be
improved.

Closes mapeditor#1709
  • Loading branch information
bjorn committed Aug 29, 2017
1 parent 7755370 commit 747b292
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tiled/tiled.pro
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,10 @@ desktopfile.path = $${PREFIX}/share/applications/
desktopfile.files += ../../tiled.desktop
INSTALLS += desktopfile

appdatafile.path = $${PREFIX}/share/metainfo/
appdatafile.files += ../../tiled.appdata.xml
INSTALLS += appdatafile

manpage.path = $${PREFIX}/share/man/man1/
manpage.files += ../../man/tiled.1
INSTALLS += manpage
Expand Down
8 changes: 8 additions & 0 deletions src/tiled/tiled.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,14 @@ QtGuiApplication {
files: [ "../../tiled.desktop" ]
}

Group {
name: "AppData file (Linux)"
condition: qbs.targetOS.contains("linux")
qbs.install: true
qbs.installDir: "share/metainfo"
files: [ "../../tiled.appdata.xml" ]
}

Group {
name: "Thumbnailer (Linux)"
condition: qbs.targetOS.contains("linux")
Expand Down

0 comments on commit 747b292

Please sign in to comment.