mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-08-07 02:09:42 +00:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user