Add more mirror site for box86/box64 and wine

This commit is contained in:
Caten
2024-08-10 18:15:59 +08:00
parent cb1f4b23ee
commit 5ebbaf7073
6 changed files with 8 additions and 9 deletions

Binary file not shown.

View File

@@ -22,7 +22,7 @@ mirror_sites=(
)
for mirror in "${mirror_sites[@]}"; do
local url="${mirror}${box86_url}"
url="${mirror}${box86_url}"
echo "尝试从 $url 下载box86..."
git clone "${url}"
if [ $? -eq 0 ]; then
@@ -37,7 +37,7 @@ for mirror in "${mirror_sites[@]}"; do
done
for mirror in "${mirror_sites[@]}"; do
local url="${mirror}${box64_url}"
url="${mirror}${box64_url}"
echo "尝试从 $url 下载box64..."
git clone "${url}"
if [ $? -eq 0 ]; then

View File

@@ -20,7 +20,7 @@ mirror_sites=(
)
for mirror in "${mirror_sites[@]}"; do
local url="${mirror}$LATEST_DXVK_LINK"
url="${mirror}$LATEST_DXVK_LINK"
echo "尝试从 $url 下载dxvk..."
wget "${url}"
if [ $? -eq 0 ]; then
@@ -34,7 +34,7 @@ for mirror in "${mirror_sites[@]}"; do
fi
done
wineboot
wine64 wineboot
tar xvf $LATEST_DXVK_NAME
mv dxvk-$LATEST_DXVK_TAG/x32/* ~/.wine/drive_c/windows/syswow64
mv dxvk-$LATEST_DXVK_TAG/x64/* ~/.wine/drive_c/windows/system32

View File

@@ -49,7 +49,7 @@ mirror_sites=(
)
for mirror in "${mirror_sites[@]}"; do
local url="${mirror}$LATEST_WINE_LINK"
url="${mirror}$LATEST_WINE_LINK"
echo "尝试从 $url 下载wine..."
wget "${url}"
if [ $? -eq 0 ]; then

View File

@@ -662,9 +662,8 @@ class _InfoPageState extends State<InfoPage> {
elevation: 1,
expandedHeaderPadding: const EdgeInsets.all(0),
expansionCallback: (panelIndex, isExpanded) {
setState(() {
_expandState[panelIndex] = isExpanded;
});
WidgetsBinding.instance.addPostFrameCallback((_) => setState(() {}));
},
children: [
ExpansionPanel(

View File

@@ -404,7 +404,7 @@ VSCode、输入法
];
//默认快捷指令
static const commands = [{"name":"检查更新并升级", "command":"sudo dpkg --configure -a && sudo apt update && sudo apt upgrade -y && sudo localedef -c -i zh_CN -f UTF-8 zh_CN.UTF-8"},
static const commands = [{"name":"检查更新并升级", "command":"sudo dpkg --configure -a && sudo apt update && sudo apt full-upgrade -y && sudo apt autoremove -y && sudo localedef -c -i zh_CN -f UTF-8 zh_CN.UTF-8"},
{"name":"查看系统信息", "command":"neofetch -L && neofetch --off"},
{"name":"清屏", "command":"clear"},
{"name":"中断任务", "command":"\x03"},