增强对于Linux的支持

This commit is contained in:
EillesWan 2022-03-28 20:29:36 +08:00
parent 441d1e9982
commit d3d89d2567
13 changed files with 2000 additions and 1997 deletions

BIN
AutoInstaller/MSCT Auto Installer Executable file

Binary file not shown.

View File

@ -200,7 +200,7 @@ def __main__():
else: else:
try: try:
os.chdir(__file__[:len(__file__) - __file__[len(__file__)::-1].index('/')]) os.chdir(__file__[:len(__file__) - __file__[len(__file__)::-1].index('/')])
except FileNotFoundError: except Exception:
pass pass
log('其他平台:{} 更新执行位置,当前文件位置 {}'.format(sys.platform, __file__)) log('其他平台:{} 更新执行位置,当前文件位置 {}'.format(sys.platform, __file__))
print('完成!') print('完成!')
@ -1470,7 +1470,10 @@ def __main__():
root.title(READABLETEXT[41].format(__version__)) root.title(READABLETEXT[41].format(__version__))
root.geometry('900x900') # 像素 root.geometry('900x900') # 像素
root.iconbitmap('./resources/musicreater.ico', './resources/musicreater.ico') try:
root.iconbitmap(bitmap='./resources/musicreater.ico', default='./resources/musicreater.ico')
except Exception:
pass
print('完成!') print('完成!')

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.