Skip to content

Commit

Permalink
Add some Linux-specific icon/desktop stuff
Browse files Browse the repository at this point in the history
Copied from Tiled. It doesn't seem to work right now, but it can serve
as the basis for when I look into it further.
  • Loading branch information
mitchcurtis committed Nov 2, 2018
1 parent 3cd3dbf commit a45ac13
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
10 changes: 10 additions & 0 deletions app/Slate.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Desktop Entry]
Name=Slate
GenericName=Pixel Art Editor
Comment=Edit pixel art
TryExec=Slate
Terminal=false
Type=Application
Icon=slate
Categories=Qt;Graphics;2DGraphics;RasterGraphics;
X-Desktop-File-Install-Version=0.1
35 changes: 34 additions & 1 deletion app/app.qbs
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,38 @@ QtGuiApplication {
name: "RC file (Windows)"
files: ["slate.rc"]
}
}

// Linux desktop + icon stuff.
Group {
name: "Desktop file (Linux)"
condition: qbs.targetOS.contains("linux")
qbs.install: true
qbs.installDir: "share/applications"
files: ["Slate.desktop"]
}

Group {
name: "Icon 16x16 (Linux)"
condition: qbs.targetOS.contains("linux")
qbs.install: true
qbs.installDir: "share/icons/hicolor/16x16/apps"
// Just reuse the macOS files for simplicity.
files: [ "images/logo/slate.xcassets/slate-icon-mac.appiconset/slate-icon-16.png" ]
}

Group {
name: "Icon 32x32 (Linux)"
condition: qbs.targetOS.contains("linux")
qbs.install: true
qbs.installDir: "share/icons/hicolor/32x32/apps"
files: [ "images/logo/slate.xcassets/slate-icon-mac.appiconset/slate-icon-32.png" ]
}

Group {
name: "Icon scalable (Linux)"
condition: qbs.targetOS.contains("linux")
qbs.install: true
qbs.installDir: "share/icons/hicolor/scalable/apps"
files: [ "images/logo/slate-icon-web.svg" ]
}
}

0 comments on commit a45ac13

Please sign in to comment.