mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 07:01:31 +08:00 
			
		
		
		
	dump-db should not contain node_modules in release artifacts
This commit is contained in:
		
							parent
							
								
									518a413de7
								
							
						
					
					
						commit
						0d06d5ccee
					
				@ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user