32bit possible auto
parent
2a8a1f7d54
commit
178111a1f5
|
@ -1,5 +1,5 @@
|
|||
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
|
||||
<addon id='script.module.libtorrent' version='1.1.1' name='python-libtorrent' provider-name='DiMartino, srg70, RussakHH, aisman, inpos'>
|
||||
<addon id='script.module.libtorrent' version='1.1.1e' name='python-libtorrent' provider-name='DiMartino, srg70, RussakHH, aisman, inpos'>
|
||||
<requires>
|
||||
<import addon='xbmc.python' version='2.1.0'/>
|
||||
</requires>
|
||||
|
|
|
@ -136,10 +136,13 @@ def get_platform():
|
|||
else:
|
||||
ret["arch"] = 'mipsel_ucs2'
|
||||
elif "aarch64" in uname:
|
||||
if sys.maxunicode > 65536:
|
||||
ret["arch"] = 'aarch64_ucs4'
|
||||
if sys.maxint > 2147483647: #is_64bit_system
|
||||
if sys.maxunicode > 65536:
|
||||
ret["arch"] = 'aarch64_ucs4'
|
||||
else:
|
||||
ret["arch"] = 'aarch64_ucs2'
|
||||
else:
|
||||
ret["arch"] = 'aarch64_ucs2'
|
||||
ret["arch"] = "armv7" #32-bit userspace
|
||||
elif xbmc.getCondVisibility("system.platform.windows"):
|
||||
ret["os"] = "windows"
|
||||
elif xbmc.getCondVisibility("system.platform.osx"):
|
||||
|
|
|
@ -89,10 +89,9 @@ if __settings__.getSetting('plugin_name')!=__plugin__:
|
|||
log('platform: ' + str(platform))
|
||||
if platform['system'] not in ['windows']:
|
||||
log('os: '+str(os.uname()))
|
||||
if sys.maxunicode > 65536:
|
||||
log('ucs4')
|
||||
else:
|
||||
log('ucs2')
|
||||
log_text = 'ucs4' if sys.maxunicode > 65536 else 'ucs2'
|
||||
log_text += ' x64' if sys.maxint > 2147483647 else ' x86'
|
||||
log(log_text)
|
||||
|
||||
try:
|
||||
if platform['system'] in ['linux_x86', 'windows', 'linux_armv6', 'linux_armv7',
|
||||
|
|
|
@ -108,6 +108,8 @@ class LibraryManager():
|
|||
if not xbmcvfs.exists(new_libpath):
|
||||
xbmcvfs.copy(libpath, new_libpath)
|
||||
log('Copied %s -> %s' %(libpath, new_libpath))
|
||||
if not xbmcvfs.exists(new_libpath):
|
||||
log('Failed!')
|
||||
else:
|
||||
new_size=str(os.path.getsize(new_libpath))
|
||||
if size!=new_size:
|
||||
|
|
|
@ -136,10 +136,13 @@ def get_platform():
|
|||
else:
|
||||
ret["arch"] = 'mipsel_ucs2'
|
||||
elif "aarch64" in uname:
|
||||
if sys.maxunicode > 65536:
|
||||
ret["arch"] = 'aarch64_ucs4'
|
||||
if sys.maxint > 2147483647: #is_64bit_system
|
||||
if sys.maxunicode > 65536:
|
||||
ret["arch"] = 'aarch64_ucs4'
|
||||
else:
|
||||
ret["arch"] = 'aarch64_ucs2'
|
||||
else:
|
||||
ret["arch"] = 'aarch64_ucs2'
|
||||
ret["arch"] = "armv7" #32-bit userspace
|
||||
elif xbmc.getCondVisibility("system.platform.windows"):
|
||||
ret["os"] = "windows"
|
||||
elif xbmc.getCondVisibility("system.platform.osx"):
|
||||
|
|
Loading…
Reference in New Issue