mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:26:08 +08:00 
			
		
		
		
	dump-db should not contain node_modules in release artifacts
This commit is contained in:
		
							parent
							
								
									518a413de7
								
							
						
					
					
						commit
						0d06d5ccee
					
				
					 5 changed files with 4 additions and 3 deletions
				
			
		|  | @ -30,6 +30,7 @@ rm -r $BUILD_DIR/swiftshader | |||
| cp bin/tpl/anonymize-database.sql $BUILD_DIR/ | ||||
| 
 | ||||
| cp -r dump-db $BUILD_DIR/ | ||||
| rm -rf $BUILD_DIR/dump-db/node_modules | ||||
| 
 | ||||
| cp bin/tpl/trilium-portable.sh $BUILD_DIR/ | ||||
| chmod 755 $BUILD_DIR/trilium-portable.sh | ||||
|  |  | |||
|  | @ -26,6 +26,7 @@ mv "./dist/Trilium Notes-darwin-x64" $BUILD_DIR | |||
| cp bin/tpl/anonymize-database.sql $BUILD_DIR/ | ||||
| 
 | ||||
| cp -r dump-db $BUILD_DIR/ | ||||
| rm -rf $BUILD_DIR/dump-db/node_modules | ||||
| 
 | ||||
| echo "Zipping mac x64 electron distribution..." | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,6 +31,7 @@ chmod 755 $PKG_DIR/trilium.sh | |||
| cp bin/tpl/anonymize-database.sql $PKG_DIR/ | ||||
| 
 | ||||
| cp -r dump-db $PKG_DIR/ | ||||
| rm -rf $PKG_DIR/dump-db/node_modules | ||||
| 
 | ||||
| VERSION=`jq -r ".version" package.json` | ||||
| 
 | ||||
|  |  | |||
|  | @ -28,6 +28,7 @@ rm -r $BUILD_DIR/swiftshader | |||
| cp bin/tpl/anonymize-database.sql $BUILD_DIR/ | ||||
| 
 | ||||
| cp -r dump-db $BUILD_DIR/ | ||||
| rm -rf $BUILD_DIR/dump-db/node_modules | ||||
| 
 | ||||
| cp bin/tpl/trilium-{portable,no-cert-check,safe-mode}.{bat,ps1} $BUILD_DIR/ | ||||
| 
 | ||||
|  |  | |||
|  | @ -14,9 +14,6 @@ mkdir $DIR | |||
| 
 | ||||
| echo "Copying Trilium to build directory $DIR" | ||||
| 
 | ||||
| cp -r dump-db $DIR/ | ||||
| rm -rf $DIR/dump-db/node_modules | ||||
| 
 | ||||
| cp -r images $DIR/ | ||||
| cp -r libraries $DIR/ | ||||
| cp -r src $DIR/ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue