From 1a453c677821f4f69544901742cd700b8ddf19b1 Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Fri, 26 Aug 2022 14:00:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E6=9C=AC=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AutoConfig.py | 4 +- ChangeWineBottonVersion/10.reg | Bin 0 -> 2122 bytes ChangeWineBottonVersion/2003.reg | Bin 0 -> 2152 bytes ChangeWineBottonVersion/2008.reg | Bin 0 -> 2152 bytes ChangeWineBottonVersion/7.reg | Bin 0 -> 2142 bytes ChangeWineBottonVersion/8.1.reg | Bin 0 -> 2122 bytes ChangeWineBottonVersion/8.reg | Bin 0 -> 2114 bytes ChangeWineBottonVersion/desktop/desktop.reg | Bin 0 -> 370 bytes ChangeWineBottonVersion/vista.reg | Bin 0 -> 2150 bytes ChangeWineBottonVersion/xp.reg | Bin 0 -> 2144 bytes ConfigLanguareRunner.py | 52 ++++++++++++++++---- InstallDll.py | 9 ++-- __pycache__/InstallDll.cpython-37.pyc | Bin 3613 -> 3806 bytes mainwindow.py | 28 ++++++++--- 14 files changed, 72 insertions(+), 21 deletions(-) mode change 100644 => 100755 AutoConfig.py create mode 100644 ChangeWineBottonVersion/10.reg create mode 100644 ChangeWineBottonVersion/2003.reg create mode 100644 ChangeWineBottonVersion/2008.reg create mode 100644 ChangeWineBottonVersion/7.reg create mode 100644 ChangeWineBottonVersion/8.1.reg create mode 100644 ChangeWineBottonVersion/8.reg create mode 100644 ChangeWineBottonVersion/desktop/desktop.reg create mode 100644 ChangeWineBottonVersion/vista.reg create mode 100644 ChangeWineBottonVersion/xp.reg diff --git a/AutoConfig.py b/AutoConfig.py old mode 100644 new mode 100755 index ae49e36..f16cafb --- a/AutoConfig.py +++ b/AutoConfig.py @@ -50,7 +50,7 @@ class Connect: return # 执行脚本 process = QtCore.QProcess() - process.start(f"{programPath}/launch.sh", ["deepin-terminal", "-e", "env", f"WINE={wine}", f"WINEPREFIX={wineprefix}", f"{programPath}/ConfigLanguareRunner.py", "/tmp/wine-runner-auto-config.wsh"]) + process.start(f"{programPath}/launch.sh", ["deepin-terminal", "-e", "env", f"WINE={wine}", f"WINEPREFIX={wineprefix}", f"{programPath}/ConfigLanguareRunner.py", "/tmp/wine-runner-auto-config.wsh", "--system"]) process.waitForFinished() def OpenFile_Triggered(): @@ -59,7 +59,7 @@ class Connect: return # 执行脚本 process = QtCore.QProcess() - process.start(f"{programPath}/launch.sh", ["deepin-terminal", "-e", "env", f"WINE={wine}", f"WINEPREFIX={wineprefix}", f"{programPath}/ConfigLanguareRunner.py", path[0]]) + process.start(f"{programPath}/launch.sh", ["deepin-terminal", "-e", "env", f"WINE={wine}", f"WINEPREFIX={wineprefix}", f"{programPath}/ConfigLanguareRunner.py", path[0], "--system"]) process.waitForFinished() # 读取文本文档 diff --git a/ChangeWineBottonVersion/10.reg b/ChangeWineBottonVersion/10.reg new file mode 100644 index 0000000000000000000000000000000000000000..f3dd6399bef9953045810bbb7f8df7475c8caa09 GIT binary patch literal 2122 zcmeH}TT4Pg6ouDw(0`EgoZ+b~3VJ9ll2RkP5E)`>b;2~%u=?@Uw`a8UBwdJJLIyo& zX5ZHy*Y@T4M3GvmtF6AeO6WihU2)b`PaQpSvV}Ba*Jhv4G4c-5h<%HFTJuV=W;NqJ zXWG#&Hm9m+Peo<4!Ly<~&kVAh3P{T;VSkC&zN+|ZaFWMojrTU*y{xQwb_E@xnbAFZ zX4S&Oct+>Sl;Tw;qpD(JT>1? zV<(nh+*2KNOslRnhq2-8S9M|yhG6SgetjR~*c@^X?x@dKcSMYcy>+U_Y1j43?#8z3 ziRn#3c)U+Tq*Ctw3@x&Fw%gYOp{Dj-j5_$%ILQrqb4|>L0U~n_kH7yeyNVLjX!!qq zyq`vy=J&gvO!4~<_<7dJ!A~~5j6s^rfGY2vyGHqR$uV}CUvsEcbiD0k#tG0_U=l1b z?UJxw1HMl>CK&Q@$UcpH5xww@|Hi!)h;lo~B$zPm5+9~rNQ@yfj?QJ9zzx{2$ny%X v#>Y>tPCu1Bw|;Kf$IASS>y}`8!_F!^pwc$)ULynJmRWsbz5ieEF$}v`S#At1 literal 0 HcmV?d00001 diff --git a/ChangeWineBottonVersion/2003.reg b/ChangeWineBottonVersion/2003.reg new file mode 100644 index 0000000000000000000000000000000000000000..7441450eca7cdd2258c3ac7ad54ae40937ddbe0f GIT binary patch literal 2152 zcmeH}UrRzk5XH}P(07pgT#=eYK@Vj`Qd+1LkrAdhyJZ?$S$+8GH@j+T7b>Keh>PCc zotZQL)-%4n9xGByb+y$~R|yprs=--T_v+}GlP#nXyEglTj*xedM(kVcGg{Ch&#Y$L z=Ttk|#pXok+S9(WTIYSPJnt;BoC-)QDq(*KYEM=0LQe8v)>yYe_p*v6qbsP4W>ydA znNm-xBDp5_&P3dkICZLKT6L|u+FSkolZlPrD%+Y0Hx-Lp=6>9fozLwM z9}#=&V2#tR>!aP7ZO%fc7gyc!{&_6BRUh5h1lR85J@skQFY{2Rwlz+2{jOYr|J1L? zoU6v~e^*>p5@cxA|9yWy_3|IzbUpd6-(RSo=bRkuWHZeeq{(Ecvi8h1%BD+>tuy?Z zlQ4X>&wBBU6QGk)T1(8pc^D~#>*pO44A?lyK7%}sUUE1s#?cCRx$Q?1#LU3Nrx}=X zKGH+H(TQ!7Erb#Gc{e~dMt*U*`g!fybuhQ$EqhoQ&bV#~uDAMGmPN8{v-TQUShvE{ O!`H_@3GZX@uizc-KM@V=z*BSmoPD=Q!vF_mA%c_cJSJoby1>K=% zR&6|tXLRDS2+*l$H6{zRq=0j);NC?GsbGf;YPx2XL27lF^=O0@c9ELk;62Q_ia*yb zW7pETi}w}F5}904dpDMM+)o|UOslR%mxtoD>ILxy1j&0FNn$ z#_xYu9oi`>H1vNz-gl$?=l8Ro{Nwi*@bjEggq>`r8G|&L3}>u8bB(fT&ari#UvpXu z=y=;?#tG2LD61SZa2iGm;reOE1Vc7Xv(F>XqL+SSvvF@_qO=B?1PL=R^CS6k2QY@m&hTF40

Ly&kekRE&1s%zT2t=cMuW!)mW*OfJ1T~P;E=JbG_ zc{PbJTG5%SBEY7k^)X$b6$R{D2ahgWNC$gVP}L2qBwFjkyoWQaAw_C{gO9MNEFFJs zUBvHJ7cSp-JPTBEP4Dfoy2sT1^hhcLCg$He42raA5&_0 zR@+Pq;lf?sbz&M9zql^_r1reppKtM=UA!#LsBHd I&tb^D13iBa`~Uy| literal 0 HcmV?d00001 diff --git a/ChangeWineBottonVersion/8.1.reg b/ChangeWineBottonVersion/8.1.reg new file mode 100644 index 0000000000000000000000000000000000000000..1c3a360f900085a32d0b9642fdb987056df23ea9 GIT binary patch literal 2122 zcmeH}TT4Pw5QW!s(0`EgoROJQK@Vj`Qfg=yB11~8PIw75tbTm;&EDQSP!YX^Z1kMj zGqdKhw`+WVJ6EWdYHF*mu3{>xt~>U+>Zzj_cJ|PQNNwbp&d_(zhR7}Cl$N!^TGWF3 zTBNddMSx97yED2#TMAf~t65B<>>!0|P^-7vP}CxRnw-+!+PvjIx>IjUh7x5$w=H2?!Y6}`Pxp25hB|uRoU&jv$A`!@6N;Q zqPjbMMjk88%}I{zcfqxL*P}lT9lHoMdRt{DJ2;hlB0dlLvE;h(_upk#PmBt!`+pzr zr%~ql{q9WW{reC7^PH1~oosFygEV0OYu-I`O|t2lW9t;Z=7ct|@xIZF6JWCnORX{I z;&5Iau8%t=7_xB!IfXunU1G#$(`b33GzXak5pyo~Y0j;~jbpUQnQYUy4j&eH-hpd; x{OT(86WMd?kcFc?`*<17v~3Bdx9(YuMQUyH?kzHKZkg35*7(1Ik73=j&j-xy3%CFP literal 0 HcmV?d00001 diff --git a/ChangeWineBottonVersion/8.reg b/ChangeWineBottonVersion/8.reg new file mode 100644 index 0000000000000000000000000000000000000000..fe66b5a9b2a4fa5df1d7e9fc4e64d735e96547e9 GIT binary patch literal 2114 zcmeH}UrRzk5XH}P(07pgoROxIK@Vj`Qd*=Hks+p5H%vnds}EoOW>-z^LPhuzvgp0D zGjrz8u4jCIJ5#8(8tSO8o?<#yQ#b7O^r)_0*x5lFB6W~sIz`__8zQ%n(^}RFYf%gC zbD=%$<8!X64s@uTHhET6;F&|0R}pPRCH${J?W+b}lbr&Xb>2ImdtF7-*%ejBGN&i( z%&QH;WJZ@RivXLFwx@J~HWaWdSF;#L*+L4{qE>H}Rnpb(0aM zqPjbIMjk7}%}I{zx52f0_eg(QI&u*j^tR4UesC(cM0_6fW65=6_TLp(PmBt!`?HVt z+bHw={&ptw{{4skdCtkhPByoUL0YhXjd#yn<7}F8Y@O!UoKO}U?;FiH0X9jkD#e_O z!+A}(KJJ)c$i@leH2PKS5+gR7L@N^IevnBJG3R1m=G@u{X?z~rW&^w3^5Czq)RS7}R!m@~r2-1*3MGfuct8;IQe)e%0?wm6-XAbkY zuSrNbl2KFQ;1h8YS5i@M6XU6x2xYhgo0g3&Q)ZgkuxCslJzr?f zQaE6t+$YqZ5lge?Ahk%$%ZJH48gednpV_sux-Jv-m7J}U9G8*8aIrM5>aT?V=OX;s WUw--e^k97TbdkQIVQ8=OcJ>5cg*}V_ literal 0 HcmV?d00001 diff --git a/ChangeWineBottonVersion/vista.reg b/ChangeWineBottonVersion/vista.reg new file mode 100644 index 0000000000000000000000000000000000000000..a1540dfb98d9bf217ec19b59b932227c7068c3a9 GIT binary patch literal 2150 zcmeH}TT4Pg6ouDw(0`EgT#=SRK@X)xQd(#iB11|~cFHugvikAWw`a8UBwdhRLJoRn zX5ZHy*Y@@0NRgVVsim$uN~ow%bfrZwe0 zC)(0BHpi-HN4v^sjdw+P-Wg;$6_A!y!u|rUU7g`CBy{xQwb_MODnbAFZ zX4S;Qa7L#tivXRHvN2hpRRx?|1rIJ-NCkUjP}Mc76jH0htOp~kvy0RK2k&9YRs6kn z0lOQWyLdmb%#+C#wYOt=$Nkhm&9rJ-ahVwY{#hECzaiTk%dhWm9G89W$1TikyA1Aw2{cdFOYj^Svd>Zu2BGkaP%1N%*l}r3T_VAc- zX#D+m*`b}FLPP)Wv3+N@^*=*QbfhaeRpa zl0H8U&TN})A)L6&yN++;SfZJ(bG6sf72TI#8zgmx6F&RIuYwe`Ts8q$bei+w`-$lFLG_D%K~&1jZqQWNfT ztPO2qbEH#ksi>@$d7moJJBuu*0@AWd*q`IIrwaZ;PV)GyvTots%gP$fuAp5sv${pk zteSWj&gjHt5uj7j>WD1Rk^;`Hf;$&2q=IcSsOpMU3aQm$)`JmN*hOl9gZGfuycVeW zEA0Yy*E)0YzGImulS^uEkK{e-rv_@KRnwxw-thNNCN_UVwmFvHRIJ}!?#B()`P%k~ z5wW)pRypmsKH8mG=PY!3ap(^B&-=1l_1=wD{Mw!Df=`2fS%ezcRyoP_yK;g5`#v61 z4vpXcE<02bRA}h`e!QPX`Oj~>p8VtY7x43(lY^aXrWu1Ym<$!xp1B6ubk4DLhF^0M zhOhKlFP?D%bW%!dju|)&BZYANv}1x-Hcqn7AWx&0e47@--U>vy?q?Fj%)rEl8F&Z- zzD}OOX>C(2gbjv%Obesp#ES?!tibITr9=4V*91kW3GR^bknwpe?OER0*`=@IMw KUxbfgxW53wDG+!7 literal 0 HcmV?d00001 diff --git a/ConfigLanguareRunner.py b/ConfigLanguareRunner.py index b3be81b..a6611ab 100755 --- a/ConfigLanguareRunner.py +++ b/ConfigLanguareRunner.py @@ -7,7 +7,6 @@ # 感谢:感谢 wine 以及 deepin-wine 团队,提供了 wine 和 deepin-wine 给大家使用,让我能做这个程序 # 基于 Python3 构建 ########################################################################################### -from inspect import trace import os import sys import time @@ -83,7 +82,11 @@ class Command(): "createbotton", "reg", "enabledopengl", - "disbledopengl" + "disbledopengl", + "winecfg", + "winver", + "changeversion", + "stopdll" ] def __init__(self, commandString: str) -> None: @@ -147,8 +150,8 @@ class Command(): except: pass if number: - return InstallDll.Download(self.wineBottonPath, InstallDll.GetNameByNumber(int(self.command[1])), InstallDll.GetUrlByNumber(int(self.command[1]))) - return InstallDll.Download(self.wineBottonPath, self.command[1], InstallDll.GetUrlByName(self.command[1])) + return InstallDll.Download(self.wineBottonPath, InstallDll.GetNameByNumber(int(self.command[1])), InstallDll.GetUrlByNumber(int(self.command[1])), self.wine) + return InstallDll.Download(self.wineBottonPath, self.command[1], InstallDll.GetUrlByName(self.command[1]), self.wine) def InstallDxvk(self): if not os.path.exists(f"{programPath}/dxvk"): @@ -189,6 +192,9 @@ class Command(): QtWidgets.QMessageBox.information(None, self.command[1], self.command[2]) return 0 + def StopDll(self) -> int: + os.system(f"WINEPREFIX='{self.wineBottonPath}' '{self.wine}' reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v {os.path.splitext(self.command[1])[0]} /f") + def CreateBotton(self): self.command = ["bat", "exit"] self.Bat() @@ -239,7 +245,8 @@ class Command(): command.append(i) commandStr = command[0] + " " for i in command[1:]: - commandStr += f"{i} " + commandStr += f"'{i}' " + print(commandStr) return os.system(commandStr) def Version(self): @@ -265,11 +272,30 @@ class Command(): return self.Bat() def EnabledOpenGl(self) -> int: - self.command = ["reg", f"{programPath}/EnabledOpengl.reg"] + self.command = ["reg", f"z:{programPath}/EnabledOpengl.reg"] return self.Reg() def DisbledOpenGl(self) -> int: - self.command = ["reg", f"{programPath}/DisabledOpengl.reg"] + self.command = ["reg", f"z:{programPath}/DisabledOpengl.reg"] + return self.Reg() + + def Winver(self): + self.command = ["bat", "winver"] + return self.Bat() + + def Winecfg(self): + self.command = ["bat", "winecfg"] + return self.Bat() + + def ChangeVersion(self): + # 判断是否为正确的版本 + if not os.path.exists(f"{programPath}/ChangeWineBottonVersion/{self.command[1]}.reg"): + print("错误:您选择的版本错误,目前只支持以下版本") + for i in os.listdir(f"{programPath}/ChangeWineBottonVersion"): + print(i.replace(".reg", ""), end=" ") + print() + return 1 + self.command = ["reg", f"z:/{programPath}/ChangeWineBottonVersion/{self.command[1]}.reg"] return self.Reg() # 可以运行的命令的映射关系 @@ -298,7 +324,11 @@ class Command(): "createbotton": CreateBotton, "reg": Reg, "enabledopengl": EnabledOpenGl, - "disbledopengl": DisbledOpenGl + "disbledopengl": DisbledOpenGl, + "winecfg": Winecfg, + "winver": Winver, + "changeversion": ChangeVersion, + "stopdll": StopDll } # 参数数列表 @@ -326,7 +356,11 @@ class Command(): "createbotton": [0], "reg": [1], "enabledopengl": [0], - "disbledopengl": [0] + "disbledopengl": [0], + "winecfg": [0], + "winver": [0], + "changeversion": [1], + "stopdll": [1] } # 解析 diff --git a/InstallDll.py b/InstallDll.py index 869f13d..b299773 100755 --- a/InstallDll.py +++ b/InstallDll.py @@ -37,12 +37,14 @@ def GetUrlByName(dllName: str): if dllName == lists[i][0]: return f"{url}/{lists[i][1]}/{lists[i][2]}/{lists[i][0]}" -def Download(wineBotton, dllName, urlPart) -> bool: +def Download(wineBotton, dllName, urlPart, wine: str) -> bool: try: os.remove(f"{wineBotton}/drive_c/windows/system32/{dllName}") except: pass - return os.system(f"aria2c -x 16 -s 16 -d '{wineBotton}/drive_c/windows/system32' -o '{dllName}' '{urlPart}'") + os.system(f"aria2c -x 16 -s 16 -d '{wineBotton}/drive_c/windows/system32' -o '{dllName}' '{urlPart}'") + os.system(f"WINEPREFIX='{wineBotton}' '{wine}' reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v {os.path.splitext(dllName)[0]} /d native /f") + return 0 def exit(): input("按回车键退出") @@ -70,6 +72,7 @@ if __name__ == "__main__": ''') wineBotton = sys.argv[1] + wine = sys.argv[2] if not os.path.exists(f"{wineBotton}/drive_c/windows/Fonts"): input("您选择的不是 Wine 容器") exit() @@ -120,5 +123,5 @@ if __name__ == "__main__": # 下载 DLL print(f"正在下载{dllName},请稍后") print(f"下载链接:{urlPart}") - if not Download(wineBotton, dllName, urlPart): + if Download(wineBotton, dllName, urlPart, wine): print("下载失败!请重试") diff --git a/__pycache__/InstallDll.cpython-37.pyc b/__pycache__/InstallDll.cpython-37.pyc index a4b60d4fa6b58dfe8c36c8bdadd0f4168554ec3a..ba86a6603c3d2560ed8873b2d615df5340c12962 100644 GIT binary patch delta 1121 zcmZ8fO>7%Q6rMM`Ub~LhYMeN6;svqP zk{3-g&ggl?iQV*4N68F)e^mPVtcjCi@*x)~F?C;eQes-9?=xotr^L)Q?`iT|F^kZc z-Ztc)M}L(kQwoUe91}V%gS_BhfLA*zR+wYXEV4#sFo!b_m^jntL+F9q#(7cf0x+ED zG8)Gji=&Ls&=60JGkUyjp%La9;^{DMh?1Ix?qqw=zCw&kU2rV42Du><=}u_nr;&h# z@oj^w{f3qksj~g|F^&nexpr;d$e2JOefWRlBo#91f*uc%rX3o0}g8|_j;PPWSa z$7B#w0}Zst>>cs!2!w=vF3yc`NZIFI9axXwZEP^i)9pN}vL4)hL}*-)=g=ZKjmoCU zk8oZgQKp?RD9|-OANIov?KVy=|(5bRG+tsO0jw$Kr6CRxeko zYn3-wuf1M6c&%hh{J^dWVVB-|yK;T&($%%K%H=CtSJx|Ro9nGx-d;`O<_0<1T-n)q zcNe9s3v^3%dDoUeb`DItEbL~@tM8&+zO@_)c*_k8iMLz37#Qxp>*4J{zfS4<~+2EXrBJ(xxHsKS{g+1^#pa@1r^Ep3+7TJqvHNM<~jJnKQN2@^eO*y)AqkJZ}8LbH_lfUmjD0& delta 910 zcmZ8f%}*0S6rY*hZc9Hlv_NTh+wxHq8byp~g3)+Dh}R~Ps2go*m>1>4BGW46gl0LL zh4F?>%7ugBK*GP_$&+aei6-9l?!h-prNr6H%)a-2@Auxk_fE6Tj5!;Ng$b_TUyP-r z_^z3v$GhX73UMC)NO^+y?dVQ|_w#`r;zXd2Cs&!Li6cG;bftgQ5WjZ+OvQVZ!0j~Q zI-04Nk$35xZL%`hN4$T;p&#|FEVIUsz%kN;WmFJb^2!m9=*^bKq$P$XN65QZq&F2z(y znxLC`CL@If0Zet`0sVpy*$ zPWGH%S-RXx>hgBH_DM77SVjK@=S&7NmB4_ZF8emW+7W!hCgYPG*{5tWSEs~d8>L4C zvRH`YBJt?PF-qOqUjrM%Y1ko62uLf5PoXDm4P!;G`wgE#uf44lkk*Lb(SJVjotAnq zdVtOJ=;q!NQe}?`w(y2eGTqcVExQR8hCoW}Ndl5sAIsHnAodV@OKBDT$q#Kz%Tf`* zX z@o?mP>>ka@omhU_M!6j-m#dYRP%gLiig^A;Bos2OEc&ZT{YBe=#&WG*6B(tqi_@% diff --git a/mainwindow.py b/mainwindow.py index 23cf89a..4c90fcb 100755 --- a/mainwindow.py +++ b/mainwindow.py @@ -520,7 +520,14 @@ def GetDllFromInternet(): wineBottonPath = setting["DefultBotton"] else: wineBottonPath = e1.currentText() - os.system(f"WINE='{programPath}/launch.sh' deepin-terminal -e '{programPath}/InstallDll.py' '{wineBottonPath}' {int(setting['RuntimeCache'])}") + os.system(f"WINE='{programPath}/launch.sh' deepin-terminal -e '{programPath}/InstallDll.py' '{wineBottonPath}' '{wine[o1.currentText()]}' {int(setting['RuntimeCache'])}") + +def WineBottonAutoConfig(): + if e1.currentText() == "": + wineBottonPath = setting["DefultBotton"] + else: + wineBottonPath = e1.currentText() + os.system(f"'{programPath}/AutoConfig.py' '{wine[o1.currentText()]}' '{wineBottonPath}'") def InstallMonoGecko(program): if e1.currentText() == "": @@ -946,6 +953,7 @@ class GetDllFromWindowsISO: return try: shutil.copy(f"/tmp/wine-runner-getdll/i386/{choose[:-1]}_", f"{GetDllFromWindowsISO.wineBottonPath}/drive_c/windows/system32/{choose}") + os.system(f"WINEPREFIX='{GetDllFromWindowsISO.wineBottonPath}' '{wine[o1.currentText()]}' reg add 'HKEY_CURRENT_USER\Software\Wine\DllOverrides' /v {os.path.splitext(choose)[0]} /d native /f") QtWidgets.QMessageBox.information(GetDllFromWindowsISO.message, "提示", "提取成功!") except: traceback.print_exc() @@ -1355,12 +1363,15 @@ exe路径\' 参数 \' updateThingsString = '''※1、新增新的 Wine 安装器,并支持将安装的 Wine 打包到 Wine 程序 deb 包中 ※2、Wine 打包器打包 Windows 应用支持将 Wine 打包入 deb 内,可以不依赖 Wine(一般不推荐把 Wine 打包入内,推荐用依赖的形式),并支持设置自定义依赖和生成模板 ※3、开始初步多语言支持 -※4、修复了在没有安装任何 Wine 的情况下使用高级功能导致程序闪退的问题 -4、修改错别字(图形话=>图形化) -5、修复评分功能名称为空也可以上传评分的问题 -6、去除 toilet 依赖,使在 Deepin 23 Preview 上运行更佳 -7、支持删除所有由 Wine 创建的启动器快捷方式 -8、支持从云端获取 Dll 并添加 +※4、修复了在没有安装任何 Wine 的情况下使用高级功能导致程序闪退的问题 +※5、支持云端自动获取数据配置 Wine 容器 +※6、支持手动导入配置文件自动配置 Wine 容器 +※7、新增从云端下载 Dll 的功能 +※8、修复了 Dll 提取工具不会在 winecfg 中添加原装的问题 +9、修改错别字(图形话=>图形化) +10、修复评分功能名称为空也可以上传评分的问题 +11、去除 toilet 依赖,使在 Deepin 23 Preview 上运行更佳 +12、支持删除所有由 Wine 创建的启动器快捷方式 ''' for i in information["Thank"]: thankText += f"{i}\n" @@ -1510,6 +1521,9 @@ programManager.addWidget(button_r_6, 3, 4, 1, 1) sparkWineSetting = QtWidgets.QPushButton(QtCore.QCoreApplication.translate("U", "星火wine配置")) sparkWineSetting.clicked.connect(lambda: threading.Thread(target=os.system, args=["/opt/durapps/spark-dwine-helper/spark-dwine-helper-settings/settings.sh"]).start()) programManager.addWidget(sparkWineSetting, 3, 6, 1, 1) +wineAutoConfig = QtWidgets.QPushButton(QtCore.QCoreApplication.translate("U", "自动/手动配置 Wine 容器")) +wineAutoConfig.clicked.connect(WineBottonAutoConfig) +programManager.addWidget(wineAutoConfig, 3, 8, 1, 1) # 权重 button5.setSizePolicy(size) saveDesktopFileOnLauncher.setSizePolicy(size)