mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-29 02:28:57 +01:00 
			
		
		
		
	build: Investigate not embedding better_sqlite3 natives
This commit is contained in:
		
							parent
							
								
									956beb1cc0
								
							
						
					
					
						commit
						03ab41bfba
					
				
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -26,9 +26,6 @@ SRC_DIR=./dist/trilium-linux-x64-src | ||||
| 
 | ||||
| rm -r "$SRC_DIR"/src/public/app-dist/*.mobile.* | ||||
| 
 | ||||
| echo "Copying required linux-x64 binaries" | ||||
| cp -r bin/better-sqlite3/linux-desktop-better_sqlite3.node "$SRC_DIR"/node_modules/better-sqlite3/build/Release/better_sqlite3.node | ||||
| 
 | ||||
| echo "Packaging linux x64 electron build" | ||||
| ./node_modules/.bin/electron-packager "$SRC_DIR" --asar --out=dist --executable-name=trilium --platform=linux --arch=x64 --overwrite | ||||
| 
 | ||||
|  | ||||
| @ -7,10 +7,6 @@ then | ||||
|     ./bin/copy-trilium.sh $SRC_DIR | ||||
| fi | ||||
| 
 | ||||
| echo "Copying required mac arm64 binaries" | ||||
| 
 | ||||
| cp -r bin/better-sqlite3/mac-arm64-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node | ||||
| 
 | ||||
| rm -r $SRC_DIR/src/public/app-dist/*.mobile.* | ||||
| 
 | ||||
| echo "Packaging mac arm64 electron build" | ||||
|  | ||||
| @ -9,8 +9,6 @@ fi | ||||
| 
 | ||||
| echo "Copying required mac x64 binaries" | ||||
| 
 | ||||
| cp -r bin/better-sqlite3/mac-x64-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node | ||||
| 
 | ||||
| rm -r $SRC_DIR/src/public/app-dist/*.mobile.* | ||||
| 
 | ||||
| echo "Packaging mac x64 electron build" | ||||
|  | ||||
| @ -23,8 +23,6 @@ rm -r $PKG_DIR/node_modules/electron* | ||||
| rm -r $PKG_DIR/webpack* | ||||
| rm -r $PKG_DIR/electron.js | ||||
| 
 | ||||
| cp -r bin/better-sqlite3/linux-server-better_sqlite3.node $PKG_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node | ||||
| 
 | ||||
| printf "#!/bin/sh\n./node/bin/node src/www" > $PKG_DIR/trilium.sh | ||||
| chmod 755 $PKG_DIR/trilium.sh | ||||
| 
 | ||||
|  | ||||
| @ -12,10 +12,6 @@ then | ||||
|     ./bin/copy-trilium.sh $SRC_DIR | ||||
| fi | ||||
| 
 | ||||
| echo "Copying required windows binaries" | ||||
| 
 | ||||
| cp -r bin/better-sqlite3/win-better_sqlite3.node $SRC_DIR/node_modules/better-sqlite3/build/Release/better_sqlite3.node | ||||
| 
 | ||||
| rm -r $SRC_DIR/src/public/app-dist/*.mobile.* | ||||
| 
 | ||||
| echo "Packaging windows x64 electron build" | ||||
|  | ||||
| @ -12,7 +12,6 @@ | ||||
|       <excludeFolder url="file://$MODULE_DIR$/libraries" /> | ||||
|       <excludeFolder url="file://$MODULE_DIR$/libraries" /> | ||||
|       <excludeFolder url="file://$MODULE_DIR$/docs" /> | ||||
|       <excludeFolder url="file://$MODULE_DIR$/bin/better-sqlite3" /> | ||||
|       <excludeFolder url="file://$MODULE_DIR$/data" /> | ||||
|       <excludeFolder url="file://$MODULE_DIR$/.flatpak-builder" /> | ||||
|     </content> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran