mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
build: Add StartupWMClass to deb build
This commit is contained in:
parent
84d216da54
commit
0768a2a0a3
@ -1,15 +0,0 @@
|
|||||||
{
|
|
||||||
"src": "dist/trilium-linux-x64",
|
|
||||||
"dest": "dist/",
|
|
||||||
"compression": "xz",
|
|
||||||
"name": "trilium",
|
|
||||||
"productName": "Trilium Notes",
|
|
||||||
"genericName": "Note taker",
|
|
||||||
"description": "Trilium Notes is a hierarchical note taking application with focus on building large personal knowledge bases.",
|
|
||||||
"sections": "misc",
|
|
||||||
"maintainer": "zadam.apps@gmail.com",
|
|
||||||
"homepage": "https://github.com/zadam/trilium",
|
|
||||||
"bin": "trilium",
|
|
||||||
"icon": "dist/trilium-linux-x64/icon.png",
|
|
||||||
"categories": [ "Office" ]
|
|
||||||
}
|
|
12
bin/electron-forge/desktop.ejs
Normal file
12
bin/electron-forge/desktop.ejs
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
<% if (productName) { %>Name=<%= productName %>
|
||||||
|
<% } %><% if (description) { %>Comment=<%= description %>
|
||||||
|
<% } %><% if (genericName) { %>GenericName=<%= genericName %>
|
||||||
|
<% } %><% if (name) { %>Exec=<%= name %> %U
|
||||||
|
Icon=<%= name %>
|
||||||
|
<% } %>Type=Application
|
||||||
|
StartupNotify=true
|
||||||
|
<% if (productName) { %>StartupWMClass=<%= productName %>
|
||||||
|
<% } if (categories && categories.length) { %>Categories=<%= categories.join(';') %>;
|
||||||
|
<% } %><% if (mimeType && mimeType.length) { %>MimeType=<%= mimeType.join(';') %>;
|
||||||
|
<% } %>
|
@ -44,6 +44,7 @@ module.exports = {
|
|||||||
config: {
|
config: {
|
||||||
options: {
|
options: {
|
||||||
icon: "./images/app-icons/png/128x128.png",
|
icon: "./images/app-icons/png/128x128.png",
|
||||||
|
desktopTemplate: path.resolve("./bin/electron-forge/desktop.ejs")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user