chore(monorepo/electron): introduce global script & rename to desktop

This commit is contained in:
Elian Doran
2025-04-19 01:25:28 +03:00
parent 3935ae2df1
commit 6c443c1cb1
10 changed files with 2 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
[Desktop Entry]
<%=
Object.entries({
"Name": productName,
"Comment": description,
"GenericName": genericName,
"Exec": name ? `${name} %U` : undefined,
"Icon": name,
"Type": "Application",
"StartupNotify": "true",
"StartupWMClass": productName,
"Categories": categories?.length ? `${categories.join(";")};` : undefined,
"MimeType": mimeType?.length ? `${mimeType.join(";")};` : undefined
})
.map(line => line[1] ? line.join("=") : undefined)
.filter(line => !!line)
.join("\n")%>