mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-01-13 01:58:27 +08:00
减小包体积
This commit is contained in:
parent
eb6fe87485
commit
c5577568c9
@ -33,7 +33,7 @@ jobs:
|
|||||||
sudo chroot debian wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list
|
sudo chroot debian wget https://ryanfortner.github.io/box64-debs/box64.list -O /etc/apt/sources.list.d/box64.list
|
||||||
sudo chroot debian bash -c "wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg"
|
sudo chroot debian bash -c "wget -qO- https://ryanfortner.github.io/box64-debs/KEY.gpg | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/box64-debs-archive-keyring.gpg"
|
||||||
sudo chroot debian apt update
|
sudo chroot debian apt update
|
||||||
sudo chroot debian apt install box64
|
sudo chroot debian apt install box64 wine -y
|
||||||
## 获取 Wine 运行器安装包
|
## 获取 Wine 运行器安装包
|
||||||
git clone https://github.com/gfdgd-xi/deep-wine-runner --depth=1
|
git clone https://github.com/gfdgd-xi/deep-wine-runner --depth=1
|
||||||
cd deep-wine-runner
|
cd deep-wine-runner
|
||||||
@ -45,9 +45,7 @@ jobs:
|
|||||||
## 安装
|
## 安装
|
||||||
sudo chroot debian apt install locales /tmp/wine-runner.deb fcitx xfce4-terminal -y
|
sudo chroot debian apt install locales /tmp/wine-runner.deb fcitx xfce4-terminal -y
|
||||||
# 构建软件包
|
# 构建软件包
|
||||||
mkdir package/opt -p
|
|
||||||
mkdir package/runner -p
|
mkdir package/runner -p
|
||||||
#sudo cp debian/opt/wine-devel package/opt -rv
|
|
||||||
sudo cp debian/usr/bin package -rv
|
sudo cp debian/usr/bin package -rv
|
||||||
sudo cp debian/usr/lib package -rv
|
sudo cp debian/usr/lib package -rv
|
||||||
#sudo cp debian/usr/lib64 package -rv
|
#sudo cp debian/usr/lib64 package -rv
|
||||||
@ -61,17 +59,10 @@ jobs:
|
|||||||
tar -cvf ../spark-deepin-wine-runner-off-line.tar *
|
tar -cvf ../spark-deepin-wine-runner-off-line.tar *
|
||||||
cd ..
|
cd ..
|
||||||
xz -T $cpu spark-deepin-wine-runner-off-line.tar
|
xz -T $cpu spark-deepin-wine-runner-off-line.tar
|
||||||
cp deep-wine-runner/off-line-shell/compression-packager.sh spark-deepin-wine-runner-off-line.sh
|
|
||||||
cat spark-deepin-wine-runner-off-line.tar.xz >> spark-deepin-wine-runner-off-line.sh
|
|
||||||
- name: upload result
|
- name: upload result
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: spark-deepin-wine-runner-off-line.tar.xz
|
name: spark-deepin-wine-runner-off-line.tar.xz
|
||||||
path: /home/runner/spark-deepin-wine-runner-off-line.tar.xz
|
path: /home/runner/spark-deepin-wine-runner-off-line.tar.xz
|
||||||
- name: upload result
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: spark-deepin-wine-runner-off-line.sh
|
|
||||||
path: /home/runner/spark-deepin-wine-runner-off-line.sh
|
|
||||||
|
|
||||||
|
|
@ -45,9 +45,7 @@ jobs:
|
|||||||
## 安装
|
## 安装
|
||||||
sudo chroot debian apt install locales /tmp/wine-runner.deb winehq-devel fcitx xfce4-terminal -y
|
sudo chroot debian apt install locales /tmp/wine-runner.deb winehq-devel fcitx xfce4-terminal -y
|
||||||
# 构建软件包
|
# 构建软件包
|
||||||
mkdir package/opt -p
|
|
||||||
mkdir package/runner -p
|
mkdir package/runner -p
|
||||||
sudo cp debian/opt/wine-devel package/opt -rv
|
|
||||||
sudo cp debian/usr/bin package -rv
|
sudo cp debian/usr/bin package -rv
|
||||||
sudo cp debian/usr/lib package -rv
|
sudo cp debian/usr/lib package -rv
|
||||||
sudo cp debian/usr/lib64 package -rv
|
sudo cp debian/usr/lib64 package -rv
|
||||||
@ -61,17 +59,10 @@ jobs:
|
|||||||
tar -cvf ../spark-deepin-wine-runner-off-line.tar *
|
tar -cvf ../spark-deepin-wine-runner-off-line.tar *
|
||||||
cd ..
|
cd ..
|
||||||
xz -T $cpu spark-deepin-wine-runner-off-line.tar
|
xz -T $cpu spark-deepin-wine-runner-off-line.tar
|
||||||
cp deep-wine-runner/off-line-shell/compression-packager.sh spark-deepin-wine-runner-off-line.sh
|
|
||||||
cat spark-deepin-wine-runner-off-line.tar.xz >> spark-deepin-wine-runner-off-line.sh
|
|
||||||
- name: upload result
|
- name: upload result
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: spark-deepin-wine-runner-off-line.tar.xz
|
name: spark-deepin-wine-runner-off-line.tar.xz
|
||||||
path: /home/runner/spark-deepin-wine-runner-off-line.tar.xz
|
path: /home/runner/spark-deepin-wine-runner-off-line.tar.xz
|
||||||
- name: upload result
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: spark-deepin-wine-runner-off-line.sh
|
|
||||||
path: /home/runner/spark-deepin-wine-runner-off-line.sh
|
|
||||||
|
|
||||||
|
|
@ -2,43 +2,18 @@
|
|||||||
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
|
SHELL_FOLDER=$(cd "$(dirname "$0")";pwd)
|
||||||
# /opt 目录识别
|
# /opt 目录识别
|
||||||
option=""
|
option=""
|
||||||
for path in `ls /opt`
|
|
||||||
do
|
if [[ -d /usr/lib32 ]]; then
|
||||||
echo /opt/$path
|
option="$option --dev-bind \"$SHELL_FOLDER/lib32\" /usr/lib32 "
|
||||||
if [[ $path != wine-staging ]]; then
|
fi
|
||||||
# 支持识别正确的 wine
|
|
||||||
mkdir -pv "$SHELL_FOLDER/opt/$path"
|
if [[ -d /usr/lib64 ]]; then
|
||||||
option="$option --dev-bind /opt/$path /opt/$path"
|
option="$option --dev-bind \"$SHELL_FOLDER/lib64\" /usr/lib64 "
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
wineName=(deepin-wine
|
|
||||||
deepin-wine8-stable
|
|
||||||
deepin-wine6-stable
|
|
||||||
deepin-wine5-stable
|
|
||||||
spark-wine
|
|
||||||
spark-wine8
|
|
||||||
deepin-wine6-vannila
|
|
||||||
spark-wine7-devel
|
|
||||||
spark-wine8-wow
|
|
||||||
deepin-wine5
|
|
||||||
ukylin-wine
|
|
||||||
okylin-wine
|
|
||||||
bookworm-run
|
|
||||||
)
|
|
||||||
for i in ${wineName[*]}; do
|
|
||||||
if [[ -e /usr/bin/$i ]]; then
|
|
||||||
option="$option --dev-bind /usr/bin/$i /usr/bin/$i"
|
|
||||||
if [[ ! -e "$SHELL_FOLDER/bin/$i" ]]; then
|
|
||||||
touch "$SHELL_FOLDER/bin/$i"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
"$SHELL_FOLDER/bwrap" --dev-bind / / \
|
"$SHELL_FOLDER/bwrap" --dev-bind / / \
|
||||||
--dev-bind "$SHELL_FOLDER/opt" /opt \
|
|
||||||
--dev-bind "$SHELL_FOLDER/bin" /usr/bin \
|
--dev-bind "$SHELL_FOLDER/bin" /usr/bin \
|
||||||
--dev-bind "$SHELL_FOLDER/lib" /usr/lib \
|
--dev-bind "$SHELL_FOLDER/lib" /usr/lib \
|
||||||
--dev-bind "$SHELL_FOLDER/lib32" /usr/lib32 \
|
|
||||||
--dev-bind "$SHELL_FOLDER/lib64" /usr/lib64 \
|
|
||||||
--dev-bind /usr/lib/locale /usr/lib/locale \
|
--dev-bind /usr/lib/locale /usr/lib/locale \
|
||||||
$option \
|
$option \
|
||||||
$SHELL_FOLDER/runner/deepin-wine-runner
|
$SHELL_FOLDER/runner/deepin-wine-runner $*
|
||||||
|
Loading…
Reference in New Issue
Block a user