Skip to content
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.

Commit

Permalink
remove lame, 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Redbeanw44602 committed Jan 29, 2023
1 parent dc12aba commit 807c264
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions Installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
MOD_PACK_VERSION = 100
PUBLIC_PACK_VERSION = 100

VERSION = "1.0.2"
VERSION = "1.0.3"

def printLogo():
print("""┌───────────────────────────────────┐
Expand Down Expand Up @@ -213,7 +213,7 @@ def isInstalled() -> bool:
exec = adb.execute('shell cat /usr/bin/runDictPen')
return exec.find('try_inject') == -1

def install_a(info: dict):
def install_a1(info: dict):
handleAssert(Utils.download(info['download'],'temp/pack.zip'))
zipfile.ZipFile('temp/pack.zip').extractall('temp/pack')

Expand Down Expand Up @@ -242,11 +242,6 @@ def upload_ex(path,to,setperm=False):
upload_ex('libPenMods.so','/userdisk/Loader')
upload_ex('external-icons/','/tmp/')
adb.execute('shell mv -b /tmp/external-icons/settings/* /oem/YoudaoDictPen/output/images/settings/')


# AudioRecorder required.
upload_ex('dependents/lame','/userdisk/Loader/dependents/lame',True)
upload_ex('dependents/libtinfo.so.6','/userdisk/Loader/dependents/libtinfo.so.6')

print('(4/4) 安装完成,正在重启...')
adb.execute('shell safe_powerdown')
Expand Down Expand Up @@ -308,7 +303,7 @@ def upload_ex(path,to,setperm=False):
if input('您是否已充分阅读、理解与接受以上告示,并决定开始安装?[y/N] ').lower() != 'y':
terminate()

if matched['install'] == 'a':
install_a(matched)
if matched['install'] == 'a1':
install_a1(matched)
else:
print('远端要求使用不受支持的安装方法,尝试更新安装程序?')

0 comments on commit 807c264

Please sign in to comment.