-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hangover, wechat, termux x11 xfce fix, locale.gen fix...
- Loading branch information
Showing
14 changed files
with
299 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
#!/bin/bash | ||
|
||
echo "正在更新软件包..." | ||
sudo apt update | ||
sudo apt upgrade -y | ||
|
||
|
||
REPO="AndreRH/hangover" | ||
API_URL="https://api.github.com/repos/$REPO/releases/latest" | ||
|
||
# 获取最新release的版本号并储存在变量中 | ||
latest_version=$(wget -qO- $API_URL | grep -oP '"tag_name": "\Khangover-\K([^"]+)' ) | ||
|
||
# 检查是否成功获取版本号 | ||
if [ -z "$latest_version" ]; then | ||
echo "无法获取到最新版本号。" | ||
exit 1 | ||
fi | ||
|
||
echo "最新版本: $latest_version" | ||
|
||
hangover_url="https://github.com/AndreRH/hangover/releases/download/hangover-${latest_version}/hangover_${latest_version}_debian12_bookworm_arm64.tar" | ||
|
||
mirror_sites=( | ||
"https://github.moeyy.xyz/" | ||
"https://mirror.ghproxy.com/" | ||
"" | ||
) | ||
|
||
mkdir -p /tmp/hangover | ||
cd /tmp/hangover | ||
|
||
for mirror in "${mirror_sites[@]}"; do | ||
url="${mirror}${hangover_url}" | ||
echo "尝试从 $url 下载Hangover..." | ||
wget "${url}" -O hangover.tar | ||
if [ $? -eq 0 ]; then | ||
echo "成功下载Hangover" | ||
break | ||
fi | ||
if [ -z "$mirror" ]; then | ||
cd /tmp | ||
rm -rf /tmp/hangover | ||
echo "下载失败...退出安装..." | ||
exit | ||
fi | ||
done | ||
|
||
echo "正在安装Hangover..." | ||
tar xvf hangover.tar | ||
sudo apt install -y ./hangover-wine_${latest_version}~bookworm_arm64.deb ./hangover-libarm64ecfex_${latest_version}_arm64.deb | ||
if [ $? -ne 0 ]; then | ||
cd /tmp | ||
rm -rf /tmp/hangover | ||
echo "安装失败...退出安装..." | ||
exit 1 | ||
fi | ||
|
||
echo "正在初始化Wine..." | ||
wineboot --init | ||
|
||
echo "正在修复字体..." | ||
regedit "Z:\\home\\tiny\\.local\\share\\tiny\\extra\\chn_fonts.reg" && wine reg delete "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes" /va /f | ||
|
||
cd /tmp | ||
rm -rf /tmp/hangover | ||
echo "安装完成" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
|
||
echo "正在更新软件包..." | ||
sudo apt update | ||
sudo apt upgrade -y | ||
|
||
hangover_url="https://github.com/AndreRH/hangover/releases/download/hangover-9.20.1/hangover_9.20.1_debian12_bookworm_arm64.tar" | ||
latest_version="9.20.1" | ||
|
||
mirror_sites=( | ||
"https://github.moeyy.xyz/" | ||
"https://mirror.ghproxy.com/" | ||
"" | ||
) | ||
|
||
mkdir -p /tmp/hangover | ||
cd /tmp/hangover | ||
|
||
for mirror in "${mirror_sites[@]}"; do | ||
url="${mirror}${hangover_url}" | ||
echo "尝试从 $url 下载Hangover..." | ||
wget "${url}" -O hangover.tar | ||
if [ $? -eq 0 ]; then | ||
echo "成功下载Hangover" | ||
break | ||
fi | ||
if [ -z "$mirror" ]; then | ||
cd /tmp | ||
rm -rf /tmp/hangover | ||
echo "下载失败...退出安装..." | ||
exit | ||
fi | ||
done | ||
|
||
echo "正在安装Hangover..." | ||
tar xvf hangover.tar | ||
sudo apt install -y ./hangover-wine_${latest_version}~bookworm_arm64.deb ./hangover-libarm64ecfex_${latest_version}_arm64.deb | ||
if [ $? -ne 0 ]; then | ||
cd /tmp | ||
rm -rf /tmp/hangover | ||
echo "安装失败...退出安装..." | ||
exit 1 | ||
fi | ||
|
||
echo "正在初始化Wine..." | ||
wineboot --init | ||
|
||
echo "正在修复字体..." | ||
regedit "Z:\\home\\tiny\\.local\\share\\tiny\\extra\\chn_fonts.reg" && wine reg delete "HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows NT\\CurrentVersion\\FontSubstitutes" /va /f | ||
|
||
echo "安装完成" |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.