Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit d52ca62

Browse files
authored
Merge branch 'develop' into chore_lint-share
2 parents 73305a5 + 27875c4 commit d52ca62

File tree

435 files changed

+19929
-10636
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

435 files changed

+19929
-10636
lines changed

.dockerignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
.prettier*
66
electron*
77
entitlements.plist
8-
forge.config.cjs
98
nodemon.json
109
renovate.json
1110
trilium.iml
@@ -34,4 +33,10 @@ npm-debug.log
3433

3534

3635
# exceptions
37-
!/bin/copy-dist.ts
36+
!/bin/copy-dist.ts
37+
38+
# temporary exception to make copy-dist inside Docker build not fail
39+
# TriliumNextTODO: make copy-dist *not* requiring to copy this file for builds other than electron-forge
40+
!forge.config.cjs
41+
!/bin/tpl
42+
!/bin/electron-forge/desktop.ejs

.github/actions/build-electron/action.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ runs:
1818
# Certificate setup
1919
- name: Import Apple certificates
2020
if: inputs.os == 'macos'
21-
uses: apple-actions/import-codesign-certs@v3
21+
uses: apple-actions/import-codesign-certs@v4
2222
with:
2323
p12-file-base64: ${{ env.APPLE_APP_CERTIFICATE_BASE64 }}
2424
p12-password: ${{ env.APPLE_APP_CERTIFICATE_PASSWORD }}
@@ -27,7 +27,7 @@ runs:
2727

2828
- name: Install Installer certificate
2929
if: inputs.os == 'macos'
30-
uses: apple-actions/import-codesign-certs@v3
30+
uses: apple-actions/import-codesign-certs@v4
3131
with:
3232
p12-file-base64: ${{ env.APPLE_INSTALLER_CERTIFICATE_BASE64 }}
3333
p12-password: ${{ env.APPLE_INSTALLER_CERTIFICATE_PASSWORD }}
@@ -97,7 +97,7 @@ runs:
9797
shell: bash
9898
run: |
9999
echo "Signing DMG file..."
100-
dmg_file=$(find out -name "*.dmg" -print -quit)
100+
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
101101
if [ -n "$dmg_file" ]; then
102102
echo "Found DMG: $dmg_file"
103103
# Get the first valid signing identity from the keychain
@@ -125,7 +125,7 @@ runs:
125125
126126
# First check the .app bundle
127127
echo "Looking for .app bundle..."
128-
app_bundle=$(find out -name "*.app" -print -quit)
128+
app_bundle=$(find ./dist -name "*.app" -print -quit)
129129
if [ -n "$app_bundle" ]; then
130130
echo "Found app bundle: $app_bundle"
131131
echo "Verifying app bundle signing..."
@@ -144,7 +144,7 @@ runs:
144144
145145
# Then check DMG if it exists
146146
echo "Looking for DMG..."
147-
dmg_file=$(find out -name "*.dmg" -print -quit)
147+
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
148148
if [ -n "$dmg_file" ]; then
149149
echo "Found DMG: $dmg_file"
150150
echo "Verifying DMG signing..."
@@ -160,7 +160,7 @@ runs:
160160
161161
# Finally check ZIP if it exists
162162
echo "Looking for ZIP..."
163-
zip_file=$(find out -name "*.zip" -print -quit)
163+
zip_file=$(find ./dist -name "*.zip" -print -quit)
164164
if [ -n "$zip_file" ]; then
165165
echo "Found ZIP: $zip_file"
166166
echo "Note: ZIP files are not code signed, but their contents should be"
@@ -177,7 +177,7 @@ runs:
177177
178178
# Look for DMG files recursively
179179
echo "Looking for DMG files..."
180-
dmg_file=$(find out -name "*.dmg" -print -quit)
180+
dmg_file=$(find ./dist -name "*.dmg" -print -quit)
181181
if [ -n "$dmg_file" ]; then
182182
echo "Found DMG: $dmg_file"
183183
cp "$dmg_file" "upload/TriliumNextNotes-${{ github.ref_name }}-macos-${{ inputs.arch }}.dmg"
@@ -187,7 +187,7 @@ runs:
187187
188188
# Look for ZIP files recursively
189189
echo "Looking for ZIP files..."
190-
zip_file=$(find out -name "*.zip" -print -quit)
190+
zip_file=$(find ./dist -name "*.zip" -print -quit)
191191
if [ -n "$zip_file" ]; then
192192
echo "Found ZIP: $zip_file"
193193
cp "$zip_file" "upload/TriliumNextNotes-${{ github.ref_name }}-macos-${{ inputs.arch }}.zip"
@@ -199,7 +199,7 @@ runs:
199199
echo "Collecting artifacts for ${{ inputs.os }}..."
200200
for ext in ${{ inputs.extension }}; do
201201
echo "Looking for .$ext files..."
202-
file=$(find out -name "*.$ext" -print -quit)
202+
file=$(find ./dist -name "*.$ext" -print -quit)
203203
if [ -n "$file" ]; then
204204
echo "Found $file for extension $ext"
205205
cp "$file" "upload/TriliumNextNotes-${{ github.ref_name }}-${{ inputs.os }}-${{ inputs.arch }}.$ext"

.github/workflows/dev.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: Dev
22
on:
33
push:
4-
branches-ignore:
5-
- 'develop'
6-
- 'feature/update**'
4+
branches: [ develop ]
5+
pull_request:
6+
branches: [ develop ]
77

88
concurrency:
99
group: ${{ github.workflow }}-${{ github.ref }}

_check_ts_progress.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

bin/copy-dist.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ try {
3030
"./package.json",
3131
"./LICENSE",
3232
"./README.md",
33+
"./forge.config.cjs",
34+
"./bin/tpl/",
35+
"./bin/electron-forge/desktop.ejs",
3336
"./src/views/",
3437
"./src/etapi/etapi.openapi.yaml",
3538
"./src/routes/api/openapi.json",
@@ -38,7 +41,8 @@ try {
3841
"./src/public/robots.txt",
3942
"./src/public/fonts",
4043
"./src/public/stylesheets",
41-
"./src/public/translations"
44+
"./src/public/translations",
45+
"./packages/turndown-plugin-gfm/src"
4246
]);
4347

4448
for (const asset of assetsToCopy) {
@@ -64,7 +68,6 @@ try {
6468
"node_modules/katex/dist/contrib/mhchem.min.js",
6569
"node_modules/katex/dist/contrib/auto-render.min.js",
6670
"node_modules/@highlightjs/cdn-assets/highlight.min.js",
67-
"node_modules/@mind-elixir/node-menu/dist/node-menu.umd.cjs"
6871
]);
6972

7073
const nodeModulesFolder = new Set([
@@ -73,14 +76,11 @@ try {
7376
"node_modules/dayjs/",
7477
"node_modules/boxicons/css/",
7578
"node_modules/boxicons/fonts/",
76-
"node_modules/mermaid/dist/",
7779
"node_modules/jquery/dist/",
7880
"node_modules/jquery-hotkeys/",
7981
"node_modules/split.js/dist/",
80-
"node_modules/panzoom/dist/",
8182
"node_modules/i18next/",
8283
"node_modules/i18next-http-backend/",
83-
"node_modules/jsplumb/dist/",
8484
"node_modules/vanilla-js-wheel-zoom/dist/",
8585
"node_modules/mark.js/dist/",
8686
"node_modules/normalize.css/",
@@ -90,7 +90,6 @@ try {
9090
"node_modules/codemirror/addon/",
9191
"node_modules/codemirror/mode/",
9292
"node_modules/codemirror/keymap/",
93-
"node_modules/mind-elixir/dist/",
9493
"node_modules/@highlightjs/cdn-assets/languages",
9594
"node_modules/@highlightjs/cdn-assets/styles",
9695
"node_modules/leaflet/dist"

bin/electron-forge/desktop-flatpak.ejs

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)