mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	chore(scripts): namespace "chore:update-build-info"
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/actions/build-electron/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/build-electron/action.yml
									
									
									
									
										vendored
									
									
								
							| @@ -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 |       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 info |     - name: Update build info | ||||||
|       shell: bash |       shell: bash | ||||||
|       run: npm run update-build-info |       run: npm run chore:update-build-info | ||||||
|     - name: Run electron-forge |     - name: Run electron-forge | ||||||
|       shell: bash |       shell: bash | ||||||
|       run: npm run make-electron -- --arch=${{ inputs.arch }} |       run: npm run make-electron -- --arch=${{ inputs.arch }} | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								.github/actions/build-server/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/actions/build-server/action.yml
									
									
									
									
										vendored
									
									
								
							| @@ -18,7 +18,7 @@ runs: | |||||||
|         MATRIX_ARCH: ${{ inputs.arch }} |         MATRIX_ARCH: ${{ inputs.arch }} | ||||||
|       shell: bash |       shell: bash | ||||||
|       run: | |       run: | | ||||||
|         npm run update-build-info |         npm run chore:update-build-info | ||||||
|         ./bin/build-server.sh |         ./bin/build-server.sh | ||||||
|     - name: Prepare artifacts |     - name: Prepare artifacts | ||||||
|       shell: bash |       shell: bash | ||||||
|   | |||||||
| @@ -32,7 +32,7 @@ mv package.json.tmp package.json | |||||||
|  |  | ||||||
| git add package.json | git add package.json | ||||||
|  |  | ||||||
| npm run update-build-info | npm run chore:update-build-info | ||||||
|  |  | ||||||
| git add src/services/build.ts | git add src/services/build.ts | ||||||
|  |  | ||||||
|   | |||||||
| @@ -38,7 +38,7 @@ | |||||||
|  |  | ||||||
|          |          | ||||||
|             <div id="content" class="type-text ck-content"> |             <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> |             </div> | ||||||
|          |          | ||||||
|  |  | ||||||
|   | |||||||
| @@ -48,12 +48,12 @@ | |||||||
|     "package-electron": "electron-forge package", |     "package-electron": "electron-forge package", | ||||||
|     "prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts", |     "prepare-dist": "rimraf ./dist && tsc && tsx ./bin/copy-dist.ts", | ||||||
|     "watch-dist": "tsx ./bin/watch-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-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": "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", |     "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-document": "cross-env nodemon ./bin/generate_document.ts 1000", | ||||||
|     "generate-openapi": "node bin/generate-openapi.js", |     "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", |     "chore:ci-update-nightly-version": "tsx ./bin/update-nightly-version.ts", | ||||||
|     "prettier-check": "prettier . --check", |     "prettier-check": "prettier . --check", | ||||||
|     "prettier-fix": "prettier . --write" |     "prettier-fix": "prettier . --write" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user