mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix(monorepo/electron): use different approach for deb that might work
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
				
			|||||||
const path = require("path");
 | 
					const path = require("path");
 | 
				
			||||||
const fs = require("fs-extra");
 | 
					const fs = require("fs-extra");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const EXECUTABLE_NAME = "trilium";
 | 
					const EXECUTABLE_NAME = "trilium"; // keep in sync with server's package.json -> packagerConfig.executableName
 | 
				
			||||||
const PRODUCT_NAME = "TriliumNext Notes";
 | 
					const PRODUCT_NAME = "TriliumNext Notes";
 | 
				
			||||||
const BIN_PATH = path.normalize("./scripts/electron-forge");
 | 
					const BIN_PATH = path.normalize("./scripts/electron-forge");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -88,9 +88,7 @@ module.exports = {
 | 
				
			|||||||
            name: "@electron-forge/maker-deb",
 | 
					            name: "@electron-forge/maker-deb",
 | 
				
			||||||
            config: {
 | 
					            config: {
 | 
				
			||||||
                options: {
 | 
					                options: {
 | 
				
			||||||
                    ...baseLinuxMakerConfigOptions,
 | 
					                    ...baseLinuxMakerConfigOptions
 | 
				
			||||||
                    name: EXECUTABLE_NAME,
 | 
					 | 
				
			||||||
                    productName: PRODUCT_NAME
 | 
					 | 
				
			||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -51,5 +51,8 @@
 | 
				
			|||||||
    "@electron-forge/maker-squirrel": "7.8.0",
 | 
					    "@electron-forge/maker-squirrel": "7.8.0",
 | 
				
			||||||
    "@electron-forge/maker-zip": "7.8.0",
 | 
					    "@electron-forge/maker-zip": "7.8.0",
 | 
				
			||||||
    "@electron-forge/plugin-auto-unpack-natives": "7.8.0"
 | 
					    "@electron-forge/plugin-auto-unpack-natives": "7.8.0"
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					  "packagerConfig": {
 | 
				
			||||||
 | 
					    "executableName": "trilium"
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user