Skip to content

Commit dc1a7c7

Browse files
committed
Test out building linux arm64 too
1 parent 3b8960c commit dc1a7c7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

build-release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ case "$TARGET_ARCH" in
7676
EXPECTED_ARCH_STRING='x86[_-]64|80386'
7777
;;
7878
arm64)
79-
EXPECTED_ARCH_STRING='arm64'
79+
EXPECTED_ARCH_STRING='arm64|aarch64'
8080
;;
8181
*)
8282
echo "Unknown arch $TARGET_ARCH"

pack.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,14 @@ const packageApp = async () => {
7979

8080
// Run build-release in this folder, for each platform. For each bundle, we copy in
8181
// only the relevant platform-specific NSS files.
82-
console.log('Building for Linux');
82+
console.log('Building for Linux x64');
8383
await fs.mkdir(path.join(OUTPUT_DIR, 'nss'));
8484
await fs.copy(path.join(__dirname, 'nss', 'linux'), path.join(OUTPUT_DIR, 'nss', 'linux'));
8585
await spawn(buildScript, ['linux', 'x64'], { cwd: OUTPUT_DIR, stdio: 'inherit' });
8686

87+
console.log('Building for Linux arm64');
88+
await spawn(buildScript, ['linux', 'arm64'], { cwd: OUTPUT_DIR, stdio: 'inherit' });
89+
8790
console.log('Building for Darwin x64');
8891
await fs.remove(path.join(OUTPUT_DIR, 'nss', 'linux'));
8992
await fs.copy(path.join(__dirname, 'nss', 'darwin'), path.join(OUTPUT_DIR, 'nss', 'darwin'));

0 commit comments

Comments
 (0)