diff --git a/app/Slate.desktop b/app/Slate.desktop new file mode 100644 index 00000000..798c801b --- /dev/null +++ b/app/Slate.desktop @@ -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 diff --git a/app/app.qbs b/app/app.qbs index 7f6f5f44..991eecaf 100644 --- a/app/app.qbs +++ b/app/app.qbs @@ -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" ] + } +}