Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/develop' into feature/improved_p…
Browse files Browse the repository at this point in the history
…romoted_attributes

; Conflicts:
;	package-lock.json
;	package.json
;	src/public/translations/en/translation.json
  • Loading branch information
eliandoran committed Oct 31, 2024
2 parents f798b63 + f8df3a6 commit 07cd0be
Show file tree
Hide file tree
Showing 31 changed files with 603 additions and 351 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# TriliumNext Notes

![Docker Pulls](https://img.shields.io/docker/pulls/triliumnext/notes) ![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/triliumnext/notes/total)

[English](./README.md) | [Chinese](./README-ZH_CN.md) | [Russian](./README.ru.md) | [Japanese](./README.ja.md) | [Italian](./README.it.md) | [Spanish](./README.es.md)

TriliumNext Notes is an open-source, cross-platform hierarchical note taking application with focus on building large personal knowledge bases.
Expand Down
15 changes: 0 additions & 15 deletions bin/deb-options.json

This file was deleted.

12 changes: 12 additions & 0 deletions bin/electron-forge/desktop.ejs
Original file line number Diff line number Diff line change
@@ -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(';') %>;
<% } %>
15 changes: 12 additions & 3 deletions forge.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,20 @@ module.exports = {
afterComplete: [(buildPath, _electronVersion, platform, _arch, callback) => {
const extraResources = getExtraResourcesForPlatform();
for (const resource of extraResources) {
const baseName = path.basename(resource);
let sourcePath;
if (platform === 'darwin') {
sourcePath = path.join(buildPath, `${APP_NAME}.app`, 'Contents', 'Resources', path.basename(resource));
sourcePath = path.join(buildPath, `${APP_NAME}.app`, 'Contents', 'Resources', baseName);
} else {
sourcePath = path.join(buildPath, 'resources', path.basename(resource));
sourcePath = path.join(buildPath, 'resources', baseName);
}
let destPath;

if (baseName !== "256x256.png") {
destPath = path.join(buildPath, baseName);
} else {
destPath = path.join(buildPath, "icon.png");
}
const destPath = path.join(buildPath, path.basename(resource));

// Copy files from resources folder to root
fs.move(sourcePath, destPath)
Expand All @@ -44,6 +51,7 @@ module.exports = {
config: {
options: {
icon: "./images/app-icons/png/128x128.png",
desktopTemplate: path.resolve("./bin/electron-forge/desktop.ejs")
}
}
},
Expand Down Expand Up @@ -95,6 +103,7 @@ function getExtraResourcesForPlatform() {
case 'darwin':
break;
case 'linux':
resources.push("images/app-icons/png/256x256.png")
for (const script of scripts) {
resources.push(`./bin/tpl/${script}.sh`)
}
Expand Down
Loading

0 comments on commit 07cd0be

Please sign in to comment.