mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 19:05:59 +01:00
Fix better-sqlite3 for ARM64 Linux
- Use ubuntu-24.04-arm for ARM64 Linux builds - Add TARGET_ARCH support to electron-rebuild - Add test workflow for ARM64 fix
This commit is contained in:
@@ -24,13 +24,15 @@ function rebuildNativeDependencies(projectRoot: string) {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
console.log(`Rebuilding ${projectRoot} with ${electronVersion}...`);
|
||||
const targetArch = process.env.TARGET_ARCH || process.arch;
|
||||
console.log(`Rebuilding ${projectRoot} with ${electronVersion} for ${targetArch}...`);
|
||||
|
||||
const resolvedPath = resolve(projectRoot);
|
||||
rebuild({
|
||||
projectRootPath: resolvedPath,
|
||||
buildPath: resolvedPath,
|
||||
electronVersion,
|
||||
arch: targetArch,
|
||||
force: true
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user