Skip to content

Commit

Permalink
Copy x86 artifact to x86_64 folder, workaround (fixes #583)
Browse files Browse the repository at this point in the history
  • Loading branch information
Catfriend1 committed Dec 22, 2019
1 parent b177190 commit 550ce05
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions syncthing/build-syncthing.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import print_function
import os
import os.path
import sys
import shutil
import subprocess
import sys
import platform
#
# Script Compatibility:
Expand Down Expand Up @@ -41,12 +42,6 @@
'goarch': '386',
'jni_dir': 'x86',
'clang': 'i686-linux-android16-clang',
},
{
'arch': 'x86_64',
'goarch': 'amd64',
'jni_dir': 'x86_64',
'clang': 'x86_64-linux-android21-clang',
}
]

Expand Down Expand Up @@ -431,4 +426,11 @@ def artifact_patch_underaligned_tls(artifact_fullfn):

print('*** Finished build for', target['arch'])

print('Copy x86 artifact to x86_64 folder, workaround for issue #583')
target_dir = os.path.join(project_dir, 'app', 'src', 'main', 'jniLibs', 'x86_64')
if not os.path.isdir(target_dir):
os.makedirs(target_dir)
shutil.copy(os.path.join(project_dir, 'app', 'src', 'main', 'jniLibs', 'x86', 'libsyncthing.so'),
os.path.join(target_dir, 'libsyncthing.so'))

print('All builds finished')

0 comments on commit 550ce05

Please sign in to comment.