代码拉取完成,页面将自动刷新
#!/bin/sh
script_txt=" #!/bin/sh \n
script_path=\$0 \n
script_path=\$(realpath \$script_path) \n
if [ \$# -lt 1 ] || [ \"\$1\" = \"--help\" ] ; then \n
echo \"Usage: \$script_path PROGRAM [ARGUMENTS...] Run the specified program\" \n
echo \" \$script_path --help Display this help and exit\" \n
echo \" \$script_path --version Output version information and exit\" \n
exit 1; \n
fi \n
if [ \$# -lt 1 ] || [ \"\$1\" = \"--version\" ] ; then \n
echo \`\$(dirname \$script_path)/wine --version\` \n
exit 1; \n
fi \n
current_path=\`pwd\` \n
wine_dir=\$(cd \$(dirname \$(dirname \$script_path));pwd) \n
wine_unix_path=\$(cd \$wine_dir/lib/wine/*-unix;pwd) \n
host_arch=\`echo \$(basename \$wine_unix_path) | cut -d - -f 1\` \n
guest_arch=\`echo \$(basename \$script_path) | cut -d - -f 2\` \n
wine_pe_path=\$wine_dir/lib/wine/\$guest_arch-windows \n
cd \"\$current_path\" \n
export LD_PRELOAD=\$wine_unix_path/ntdll.so \n"
script_qemu_txt=$script_txt"exec \"\$wine_dir/bin/qemu-\$guest_arch\" \"\$wine_pe_path/qemuloader\" \$@ "
script_box64_txt=$script_txt"exec \"\$wine_dir/bin/box64\" \"\$wine_pe_path/box64loader\" \$@ "
script_path=$0
if [ -h $script_path ]
then
script_path=$(readlink $script_path)
fi
if [ $# -lt 1 ] || [ "$1" = "--help" ] || [ ! -d $1 ]; then
echo "Usage: $script_path wine_install_dir/bin"
exit 1;
fi
script_dir=$(cd $(dirname $script_path);pwd)
install_dir=$(cd $1;pwd)
guest_arch="i386"
if [ -e $install_dir/qemu-i386 ] ; then
echo $script_qemu_txt>$install_dir/wine-$guest_arch
chmod +x $install_dir/wine-$guest_arch
fi
guest_arch="x86_64"
if [ -e $install_dir/box64 ] ; then
echo $script_box64_txt>$install_dir/wine-$guest_arch
chmod +x $install_dir/wine-$guest_arch
current_dir=`pwd`
cd "$install_dir"
ln -sf wine-$guest_arch wine-i386
cd "$current_dir"
elif [ -e $install_dir/qemu-$guest_arch ] ; then
echo $script_qemu_txt>$install_dir/wine-$guest_arch
chmod +x $install_dir/wine-$guest_arch
current_dir=`pwd`
cd "$install_dir"
ln -sf wine-$guest_arch wine-i386
cd "$current_dir"
fi
guest_arch="arm"
if [ -e $install_dir/qemu-$guest_arch ] ; then
echo $script_qemu_txt>$install_dir/wine-$guest_arch
chmod +x $install_dir/wine-$guest_arch
fi
guest_arch="aarch64"
if [ -e $install_dir/qemu-$guest_arch ] ; then
echo $script_qemu_txt>$install_dir/wine-$guest_arch
chmod +x $install_dir/wine-$guest_arch
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。