实现守护脚本开机自启动
This commit is contained in:
parent
ffdedddb27
commit
d92b7e7626
|
@ -50,13 +50,16 @@ sudo chmod +x /usr/bin/uengine-loading-ubuntu
|
|||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
# 安装所需依赖
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev notify-send
|
||||
# lnk Path To Install APK
|
||||
sudo mkdir -p /var/lib/uengine
|
||||
sudo ln -s /data/uengine/data/data/ /var/lib/uengine/data
|
||||
# 拷贝快捷方式
|
||||
sudo cp uengine-loading-ubuntu.desktop /usr/share/applications
|
||||
sudo cp uengine-loading-ubuntu.desktop /etc/xdg/autostart
|
||||
# echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
# 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或在启动器手动运行或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "不过一般情况下会自动开启,无需手动启动。"
|
||||
echo "按回车重启"
|
||||
|
|
|
@ -1,68 +0,0 @@
|
|||
#/bin/bash
|
||||
# 在 Shenmo 制作的脚本的基础上进行了修改,修复在 Wayland 下运行错误和无法安装程序的问题
|
||||
# 建议在 Ubuntu 22.04 及以上版本安装,最好在此之前先安装星火应用商店并将系统和星火应用商店更新到最新版本
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
# 不再从网盘下载,直接从 Gitlink 拉取安装包
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
# 忽略 md5 校验
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
# 拷贝到每个用户目录
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
sudo mkdir -p $username/uengine
|
||||
sudo mkdir -p $username/uengine-launch
|
||||
sudo cp /tmp/uengine/run_daemon.sh $username/uengine-launch
|
||||
# 赋予可执行权限
|
||||
sudo chmod +x $username/uengine-launch/run_daemon.sh
|
||||
#cp /tmp/uengine/launch_uengine.sh $username/uengine-launch
|
||||
done
|
||||
# 单独拷贝一份到 /usr/bin 下以做到每次开机自动化调用
|
||||
sudo cp /tmp/uengine/run_daemon.sh /usr/bin/uengine-loading-ubuntu
|
||||
sudo chmod +x /usr/bin/uengine-loading-ubuntu
|
||||
#mkdir -p $HOME/uengine
|
||||
#mkdir -p $HOME/uengine-launch
|
||||
#cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
#cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
# 安装所需依赖
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
<<<<<<< HEAD
|
||||
#echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
# 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
=======
|
||||
# lnk Path To Install APK
|
||||
sudo mkdir -p /var/lib/uengine
|
||||
sudo ln -s /data/uengine/data/data/ /var/lib/uengine/data
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
>>>>>>> 9e00e622b76d76a1c31c0250af5ccc42d0f28b26
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "不过一般情况下会自动开启,无需手动启动。"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,68 +0,0 @@
|
|||
#/bin/bash
|
||||
# 在 Shenmo 制作的脚本的基础上进行了修改,修复在 Wayland 下运行错误和无法安装程序的问题
|
||||
# 建议在 Ubuntu 22.04 及以上版本安装,最好在此之前先安装星火应用商店并将系统和星火应用商店更新到最新版本
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
# 不再从网盘下载,直接从 Gitlink 拉取安装包
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
# 忽略 md5 校验
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
# 拷贝到每个用户目录
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
sudo mkdir -p $username/uengine
|
||||
sudo mkdir -p $username/uengine-launch
|
||||
sudo cp /tmp/uengine/run_daemon.sh $username/uengine-launch
|
||||
# 赋予可执行权限
|
||||
sudo chmod +x $username/uengine-launch/run_daemon.sh
|
||||
#cp /tmp/uengine/launch_uengine.sh $username/uengine-launch
|
||||
done
|
||||
# 单独拷贝一份到 /usr/bin 下以做到每次开机自动化调用
|
||||
sudo cp /tmp/uengine/run_daemon.sh /usr/bin/uengine-loading-ubuntu
|
||||
sudo chmod +x /usr/bin/uengine-loading-ubuntu
|
||||
#mkdir -p $HOME/uengine
|
||||
#mkdir -p $HOME/uengine-launch
|
||||
#cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
#cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
# 安装所需依赖
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
<<<<<<< HEAD
|
||||
#echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
# 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
=======
|
||||
# lnk Path To Install APK
|
||||
sudo mkdir -p /var/lib/uengine
|
||||
sudo ln -s /data/uengine/data/data/ /var/lib/uengine/data
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
>>>>>>> 9e00e622b76d76a1c31c0250af5ccc42d0f28b26
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "不过一般情况下会自动开启,无需手动启动。"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,40 +0,0 @@
|
|||
#/bin/bash
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
mkdir -p $HOME/uengine
|
||||
mkdir -p $HOME/uengine-launch
|
||||
cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,40 +0,0 @@
|
|||
#/bin/bash
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
mkdir -p $HOME/uengine
|
||||
mkdir -p $HOME/uengine-launch
|
||||
cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,61 +0,0 @@
|
|||
#/bin/bash
|
||||
# 在 Shenmo 制作的脚本的基础上进行了修改,修复在 Wayland 下运行错误和无法安装程序的问题
|
||||
# 建议在 Ubuntu 22.04 及以上版本安装,最好在此之前先安装星火应用商店并将系统和星火应用商店更新到最新版本
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
# 不再从网盘下载,直接从 Gitlink 拉取安装包
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
# 忽略 md5 校验
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
# 拷贝到每个用户目录
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
sudo mkdir -p $username/uengine
|
||||
sudo mkdir -p $username/uengine-launch
|
||||
sudo cp /tmp/uengine/run_daemon.sh $username/uengine-launch
|
||||
# 赋予可执行权限
|
||||
sudo chmod +x $username/uengine-launch/run_daemon.sh
|
||||
#cp /tmp/uengine/launch_uengine.sh $username/uengine-launch
|
||||
done
|
||||
# 单独拷贝一份到 /usr/bin 下以做到每次开机自动化调用
|
||||
sudo cp /tmp/uengine/run_daemon.sh /usr/bin/uengine-loading-ubuntu
|
||||
sudo chmod +x /usr/bin/uengine-loading-ubuntu
|
||||
#mkdir -p $HOME/uengine
|
||||
#mkdir -p $HOME/uengine-launch
|
||||
#cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
#cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
# 安装所需依赖
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
#echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
# 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "不过一般情况下会自动开启,无需手动启动。"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,61 +0,0 @@
|
|||
#/bin/bash
|
||||
# 在 Shenmo 制作的脚本的基础上进行了修改,修复在 Wayland 下运行错误和无法安装程序的问题
|
||||
# 建议在 Ubuntu 22.04 及以上版本安装,最好在此之前先安装星火应用商店并将系统和星火应用商店更新到最新版本
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
# 不再从网盘下载,直接从 Gitlink 拉取安装包
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
# 忽略 md5 校验
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
# 拷贝到每个用户目录
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
sudo mkdir -p $username/uengine
|
||||
sudo mkdir -p $username/uengine-launch
|
||||
sudo cp /tmp/uengine/run_daemon.sh $username/uengine-launch
|
||||
# 赋予可执行权限
|
||||
sudo chmod +x $username/uengine-launch/run_daemon.sh
|
||||
#cp /tmp/uengine/launch_uengine.sh $username/uengine-launch
|
||||
done
|
||||
# 单独拷贝一份到 /usr/bin 下以做到每次开机自动化调用
|
||||
sudo cp /tmp/uengine/run_daemon.sh /usr/bin/uengine-loading-ubuntu
|
||||
sudo chmod +x /usr/bin/uengine-loading-ubuntu
|
||||
#mkdir -p $HOME/uengine
|
||||
#mkdir -p $HOME/uengine-launch
|
||||
#cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
#cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
# 安装所需依赖
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
#echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
# 这里直接运行 run_daemon.sh,运行 launch_uengine.sh 好像不行
|
||||
echo "重启后在$HOME/uengine-launch执行run_daemon.sh或执行命令uengine-loading-ubuntu即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "不过一般情况下会自动开启,无需手动启动。"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,43 +0,0 @@
|
|||
#/bin/bash
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
mkdir -p $HOME/uengine
|
||||
mkdir -p $HOME/uengine-launch
|
||||
cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
# lnk Path To Install APK
|
||||
sudo mkdir -p /var/lib/uengine
|
||||
sudo ln -s /data/uengine/data/data/ /var/lib/uengine/data
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -1,43 +0,0 @@
|
|||
#/bin/bash
|
||||
is_tar_checked="0"
|
||||
rm -rf /tmp/uengine
|
||||
#until [ "$is_tar_checked" = "1" ];do
|
||||
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
|
||||
#read tar_path
|
||||
mkdir -p /tmp/uengine
|
||||
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uengine2.1.2.2007.tar.xz
|
||||
tar_path="/tmp/uengine/uenginetar.xz"
|
||||
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
|
||||
#echo "路径为 $tar_path"
|
||||
tar_md5sum=`md5sum $tar_path`
|
||||
tar_md5sum=`echo ${tar_md5sum%%/*}`
|
||||
|
||||
#if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
|
||||
is_tar_checked="1"
|
||||
#else
|
||||
#echo $tar_md5sum
|
||||
#echo "md5完整性检查失败,请检查是否是这个文件"
|
||||
#sleep 3
|
||||
#reset
|
||||
#fi
|
||||
#done
|
||||
|
||||
#echo "完整性检查通过,开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
echo "开始部署。部署过程会需要root权限,完成后会要求重启。请注意不要在安装过程中安装或卸载其他软件"
|
||||
cd /tmp
|
||||
tar -xf "$tar_path"
|
||||
mkdir -p $HOME/uengine
|
||||
mkdir -p $HOME/uengine-launch
|
||||
cp /tmp/uengine/run_daemon.sh $HOME/uengine-launch
|
||||
cp /tmp/uengine/launch_uengine.sh $HOME/uengine-launch
|
||||
cd /tmp/uengine
|
||||
/tmp/uengine/install.sh
|
||||
sudo apt install -y libkf5globalaccel5 libqt5multimedia5 libqt5sensors5 libegl1-mesa-dev
|
||||
# lnk Path To Install APK
|
||||
sudo mkdir -p /var/lib/uengine
|
||||
sudo ln -s /data/uengine/data/data/ /var/lib/uengine/data
|
||||
echo "重启后在$HOME/uengine-launch执行launch_uengine.sh即可打开uengine守护进程。随后即可安装和使用安卓应用"
|
||||
echo "你需要在每次启动安卓应用之前打开这个脚本。打开后可安全关闭"
|
||||
echo "按回车重启"
|
||||
read
|
||||
reboot
|
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Categories=System;
|
||||
Comment=启动 UEngine 环境(默认会开机自启动)
|
||||
Encoding=UTF-8
|
||||
Exec=uengine-loading-ubuntu
|
||||
Icon=/opt/apps/com.gitee.uengine.runner.spark/files/defult.svg
|
||||
MimeType=
|
||||
Name=手动启动 UEngine 环境(默认会开机自启动)
|
||||
StartupWMClass=手动启动 UEngine 环境(默认会开机自启动)
|
||||
Terminal=false
|
||||
Type=Application
|
Loading…
Reference in New Issue