Merge pull request #29 from paramientos/fix-swift-helper-issue

fix(macos): add explicit target architecture to Swift helper builds
This commit is contained in:
webadderall
2026-03-16 12:57:55 +11:00
committed by GitHub
6 changed files with 9 additions and 4 deletions
+3 -3
View File
@@ -1,12 +1,13 @@
{
"name": "recordly",
"version": "1.1.3",
"version": "1.0.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "recordly",
"version": "1.1.3",
"version": "1.0.0",
"hasInstallScript": true,
"dependencies": {
"@fix-webm-duration/fix": "^1.0.1",
"@pixi/filter-drop-shadow": "^5.2.0",
@@ -14118,4 +14119,3 @@
}
}
}
+6 -1
View File
@@ -44,7 +44,12 @@ for (const helper of helpers) {
const sourcePath = path.join(nativeRoot, helper.source);
const outputPath = path.join(outputDir, helper.output);
const result = spawnSync('swiftc', ['-O', sourcePath, '-o', outputPath], {
const result = spawnSync('swiftc', [
'-O',
'-target', process.arch === 'arm64' ? 'arm64-apple-macos14.0' : 'x86_64-apple-macos14.0',
sourcePath,
'-o', outputPath
], {
encoding: 'utf8',
timeout: 120000,
});