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

Commit 2fb05ab

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature/i18n_first_steps
; Conflicts: ; package-lock.json ; package.json
2 parents de342c3 + 997da1c commit 2fb05ab

38 files changed

+9874
-17762
lines changed

.github/workflows/dev.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: Dev
22
on:
33
push:
4+
branches-ignore:
5+
- 'develop'
6+
- 'feature/update**'
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: true
11+
412
jobs:
513
build_docker:
614
name: Build Docker image
@@ -10,7 +18,7 @@ jobs:
1018
- name: Set up node & dependencies
1119
uses: actions/setup-node@v4
1220
with:
13-
node-version: 18
21+
node-version: 20
1422
cache: "npm"
1523
- run: npm ci
1624
- name: Run the TypeScript build

.github/workflows/main.yml

Lines changed: 52 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@ on:
33
push:
44
branches:
55
- 'develop'
6+
- 'feature/update*'
7+
paths-ignore:
8+
- 'docs/**'
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
614
env:
715
REGISTRY: ghcr.io
816
IMAGE_NAME: ${{ github.repository }}
17+
918
jobs:
1019
build_darwin-x64:
1120
name: Build macOS x86_64
@@ -15,10 +24,12 @@ jobs:
1524
- name: Set up node & dependencies
1625
uses: actions/setup-node@v4
1726
with:
18-
node-version: 18
27+
node-version: 20
1928
cache: "npm"
2029
- run: npm ci
21-
- run: ./bin/build-mac-x64.sh
30+
- run: |
31+
npm run update-build-info
32+
./bin/build-mac-x64.sh
2233
- uses: actions/upload-artifact@v4
2334
with:
2435
name: trilium-mac-x64.zip
@@ -31,10 +42,12 @@ jobs:
3142
- name: Set up node & dependencies
3243
uses: actions/setup-node@v4
3344
with:
34-
node-version: 18
45+
node-version: 20
3546
cache: "npm"
3647
- run: npm ci
37-
- run: ./bin/build-mac-arm64.sh
48+
- run: |
49+
npm run update-build-info
50+
./bin/build-mac-arm64.sh
3851
- uses: actions/upload-artifact@v4
3952
with:
4053
name: trilium-mac-arm64.zip
@@ -47,10 +60,12 @@ jobs:
4760
- name: Set up node & dependencies
4861
uses: actions/setup-node@v4
4962
with:
50-
node-version: 18
63+
node-version: 20
5164
cache: "npm"
5265
- run: npm ci
53-
- run: ./bin/build-linux-x64.sh
66+
- run: |
67+
npm run update-build-info
68+
./bin/build-linux-x64.sh
5469
- uses: actions/upload-artifact@v4
5570
with:
5671
name: trilium-linux-x64.tar.xz
@@ -67,10 +82,12 @@ jobs:
6782
- name: Set up node & dependencies
6883
uses: actions/setup-node@v4
6984
with:
70-
node-version: 18
85+
node-version: 20
7186
cache: "npm"
7287
- run: npm ci
73-
- run: ./bin/build-server.sh
88+
- run: |
89+
npm run update-build-info
90+
./bin/build-server.sh
7491
- uses: actions/upload-artifact@v4
7592
with:
7693
name: trilium-linux-x64-server.tar.xz
@@ -90,14 +107,36 @@ jobs:
90107
- name: Set up node & dependencies
91108
uses: actions/setup-node@v4
92109
with:
93-
node-version: 18
110+
node-version: 20
94111
cache: "npm"
95112
- run: npm ci
96-
- run: ./bin/build-win-x64.sh
113+
- run: |
114+
npm run update-build-info
115+
./bin/build-win-x64.sh DONTPACK
97116
- uses: actions/upload-artifact@v4
98117
with:
99-
name: trilium-windows-x64.zip
100-
path: dist/trilium-windows-x64-*.zip
118+
name: trilium-windows-x64
119+
path: dist/trilium-windows-x64
120+
build_windows-installer:
121+
name: Build Windows x86_64 (Setup)
122+
runs-on: windows-latest
123+
steps:
124+
- uses: actions/checkout@v4
125+
- name: Set up node & dependencies
126+
uses: actions/setup-node@v4
127+
with:
128+
node-version: 20
129+
cache: "npm"
130+
- run: npm ci
131+
- name: Run installer build
132+
run: |
133+
npm run update-build-info
134+
npm run make-electron
135+
- name: Publish installer artifact
136+
uses: actions/upload-artifact@v4
137+
with:
138+
name: TriliumNext Notes for Windows (Setup)
139+
path: out/make/squirrel.windows/x64/*.exe
101140
build_docker:
102141
name: Build Docker image
103142
runs-on: ubuntu-latest
@@ -122,7 +161,7 @@ jobs:
122161
- name: Set up node & dependencies
123162
uses: actions/setup-node@v4
124163
with:
125-
node-version: 18
164+
node-version: 20
126165
cache: "npm"
127166
- run: npm ci
128167
- name: Run the TypeScript build

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ data/
1515
data-test/
1616
tmp/
1717
.eslintcache
18+
19+
out/

.gitpod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ image:
22
file: .gitpod.dockerfile
33

44
tasks:
5-
- before: nvm install 18.18.2 && nvm use 18.18.2
5+
- before: nvm install 20.15.1 && nvm use 20.15.1
66
init: npm install
77
command: npm run start-server
88

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# !!! Don't try to build this Dockerfile directly, run it through bin/build-docker.sh script !!!
2-
FROM node:18.18.2-alpine
2+
FROM node:20.15.1-alpine
33

44
# Configure system dependencies
55
RUN apk add --no-cache --virtual .build-dependencies \

bin/build-linux-x64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ echo "Packaging linux x64 electron build"
3535
BUILD_DIR=./dist/trilium-linux-x64
3636
rm -rf "$BUILD_DIR"
3737

38-
mv "./dist/Trilium Notes-linux-x64" "$BUILD_DIR"
38+
mv "./dist/TriliumNext Notes-linux-x64" "$BUILD_DIR"
3939

4040
cp images/app-icons/png/128x128.png "$BUILD_DIR"/icon.png
4141
cp bin/tpl/anonymize-database.sql "$BUILD_DIR"/

bin/build-mac-arm64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BUILD_DIR=./dist/trilium-mac-arm64
2121
rm -rf $BUILD_DIR
2222

2323
# Mac build has by default useless directory level
24-
mv "./dist/Trilium Notes-darwin-arm64" $BUILD_DIR
24+
mv "./dist/TriliumNext Notes-darwin-arm64" $BUILD_DIR
2525

2626
cp bin/tpl/anonymize-database.sql $BUILD_DIR/
2727

bin/build-mac-x64.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ BUILD_DIR=./dist/trilium-mac-x64
2121
rm -rf $BUILD_DIR
2222

2323
# Mac build has by default useless directory level
24-
mv "./dist/Trilium Notes-darwin-x64" $BUILD_DIR
24+
mv "./dist/TriliumNext Notes-darwin-x64" $BUILD_DIR
2525

2626
cp bin/tpl/anonymize-database.sql $BUILD_DIR/
2727

bin/build-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22

33
PKG_DIR=dist/trilium-linux-x64-server
4-
NODE_VERSION=18.18.2
4+
NODE_VERSION=20.15.1
55

66
if [ "$1" != "DONTCOPY" ]
77
then

bin/build-win-x64.sh

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo "Packaging windows x64 electron build"
2525
BUILD_DIR=./dist/trilium-windows-x64
2626
rm -rf $BUILD_DIR
2727

28-
mv "./dist/Trilium Notes-win32-x64" $BUILD_DIR
28+
mv "./dist/TriliumNext Notes-win32-x64" $BUILD_DIR
2929

3030
cp bin/tpl/anonymize-database.sql $BUILD_DIR/
3131

@@ -34,9 +34,11 @@ rm -rf $BUILD_DIR/dump-db/node_modules
3434

3535
cp bin/tpl/trilium-{portable,no-cert-check,safe-mode}.bat $BUILD_DIR/
3636

37-
echo "Zipping windows x64 electron distribution..."
38-
VERSION=`jq -r ".version" package.json`
39-
40-
cd dist
37+
if [ "$1" != "DONTPACK" ]
38+
then
39+
echo "Zipping windows x64 electron distribution..."
40+
VERSION=`jq -r ".version" package.json`
4141

42-
zip -r9 trilium-windows-x64-${VERSION}.zip trilium-windows-x64
42+
cd dist
43+
zip -r9 trilium-windows-x64-${VERSION}.zip trilium-windows-x64
44+
fi

0 commit comments

Comments
 (0)