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

View File

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

View File

@@ -662,9 +662,8 @@ class _InfoPageState extends State<InfoPage> {
elevation: 1, elevation: 1,
expandedHeaderPadding: const EdgeInsets.all(0), expandedHeaderPadding: const EdgeInsets.all(0),
expansionCallback: (panelIndex, isExpanded) { expansionCallback: (panelIndex, isExpanded) {
setState(() { _expandState[panelIndex] = isExpanded;
_expandState[panelIndex] = isExpanded; WidgetsBinding.instance.addPostFrameCallback((_) => setState(() {}));
});
}, },
children: [ children: [
ExpansionPanel( 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":"neofetch -L && neofetch --off"},
{"name":"清屏", "command":"clear"}, {"name":"清屏", "command":"clear"},
{"name":"中断任务", "command":"\x03"}, {"name":"中断任务", "command":"\x03"},