Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(scripts): namespace "chore:update-build-info"
Panagiotis Papadopoulos47002aa95ad1
diff --git a/.github/actions/build-electron/action.yml b/.github/actions/build-electron/action.ymlindex b55ffea4bd..e4081b906b 100644--- a/.github/actions/build-electron/action.yml+++ b/.github/actions/build-electron/action.yml@@ -33,7 +33,7 @@ runs:run: sed -e "s/case 'armv7l'/case 'arm64'/g" -e "s/return 'arm'/return 'aarch64'/g" -i node_modules/@electron-forge/maker-flatpak/dist/MakerFlatpak.js- name: Update build infoshell: bash- run: npm run update-build-info+ run: npm run chore:update-build-info- name: Run electron-forgeshell: bashrun: npm run make-electron -- --arch=${{ inputs.arch }}diff --git a/.github/actions/build-server/action.yml b/.github/actions/build-server/action.ymlindex 694005c1b0..cf8057c70e 100644--- a/.github/actions/build-server/action.yml+++ b/.github/actions/build-server/action.yml@@ -18,7 +18,7 @@ runs:MATRIX_ARCH: ${{ inputs.arch }}shell: bashrun: |- npm run update-build-info+ npm run chore:update-build-info./bin/build-server.sh- name: Prepare artifactsshell: bashdiff --git a/bin/release.sh b/bin/release.shindex fea1e030f7..74559a88c0 100755--- a/bin/release.sh+++ b/bin/release.sh@@ -32,7 +32,7 @@ mv package.json.tmp package.jsongit add package.json-npm run update-build-info+npm run chore:update-build-infogit add src/services/build.tsdiff --git a/docs/mPGbEmYGitWe.html b/docs/mPGbEmYGitWe.htmlindex a66680a976..017d198b7a 100644--- a/docs/mPGbEmYGitWe.html+++ b/docs/mPGbEmYGitWe.html@@ -38,7 +38,7 @@<div id="content" class="type-text ck-content">- <ul><li>Provides context about when the build was made and the corresponding Git revision.</li><li>The information is displayed to the client when going in the about dialog.</li><li>The build information is hard-coded in <code>src/services/build.ts</code>. This file is generated automatically via <code>npm run update-build-info</code> which itself is run automatically whenever making a build in the CI, or a <a href="UTB518X6X9Uh.html" class="type-text">local delivery</a>.</li></ul>+ <ul><li>Provides context about when the build was made and the corresponding Git revision.</li><li>The information is displayed to the client when going in the about dialog.</li><li>The build information is hard-coded in <code>src/services/build.ts</code>. This file is generated automatically via <code>npm run chore:update-build-info</code> which itself is run automatically whenever making a build in the CI, or a <a href="UTB518X6X9Uh.html" class="type-text">local delivery</a>.</li></ul></div>diff --git a/package.json b/package.jsonindex 29577415c0..8d81b7cc3a 100644--- a/package.json+++ b/package.json@@ -48,12 +48,12 @@"package-electron": "electron-forge package","prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts","watch-dist": "tsx ./bin/watch-dist.ts",- "update-build-info": "tsx bin/update-build-info.ts","integration-edit-db": "cross-env TRILIUM_INTEGRATION_TEST=edit TRILIUM_PORT=8081 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts","integration-mem-db": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts","integration-mem-db-dev": "cross-env TRILIUM_INTEGRATION_TEST=memory TRILIUM_PORT=8082 TRILIUM_ENV=dev TRILIUM_DATA_DIR=./integration-tests/db nodemon src/main.ts","generate-document": "cross-env nodemon ./bin/generate_document.ts 1000","generate-openapi": "node bin/generate-openapi.js",+ "chore:update-build-info": "tsx bin/update-build-info.ts","chore:ci-update-nightly-version": "tsx ./bin/update-nightly-version.ts","prettier-check": "prettier . --check","prettier-fix": "prettier . --write"