Update build configuration for multi-architecture support

- Added new build scripts for Linux and Windows targeting arm64 and x64 architectures.
- Updated package.json to include architecture-specific distribution commands.
- Modified build-backend.js to create architecture-specific build directories for better organization.
This commit is contained in:
Sudo-Ivan
2026-01-14 19:47:08 -06:00
parent c5e1d5cfec
commit 85f734bd9b
2 changed files with 38 additions and 10 deletions
+5 -1
View File
@@ -44,9 +44,13 @@ function generateManifest(buildDir, manifestPath) {
try {
const platform = process.env.PLATFORM || process.platform;
const arch = process.env.ARCH || process.arch;
const isWin = platform === "win32" || platform === "win";
const targetName = isWin ? "ReticulumMeshChatX.exe" : "ReticulumMeshChatX";
const buildDirRelative = isWin ? "build/exe/win32" : "build/exe/linux";
// Create architecture-specific build directory
const platformFolder = isWin ? "win32" : "linux";
const buildDirRelative = `build/exe/${platformFolder}-${arch}`;
const buildDir = path.join(__dirname, "..", buildDirRelative);
// Allow overriding the python command (e.g., to use wine python for cross-builds)