使用docker运行微信wechat的安装脚本
生活随笔
收集整理的這篇文章主要介紹了
使用docker运行微信wechat的安装脚本
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
docker運行wechat,只需要運行下面的腳本即可
#!/usr/bin/env bash # # dochat.sh - Docker WeChat for Linux # # Author: Huan (李卓桓) <zixia@zixia.net> # Copyright (c) 2020-now # # License: Apache-2.0 # GitHub: https://github.com/huan/docker-wechat # set -eo pipefail# # The defeault docker image version which confirmed that most stable. # See: https://github.com/huan/docker-wechat/issues/29#issuecomment-619491488 # # Updates: # 2020-04-01: 2.7.1.85 # 2020-08-24: 3.3.0.115 (not working yet) # 2020-09-01: 3.3.0.115 (alpha testing) DEFAULT_WECHAT_VERSION=3.3.0.115# # Get the image version tag from the env # DOCHAT_IMAGE_VERSION="zixia/wechat:${DOCHAT_WECHAT_VERSION:-${DEFAULT_WECHAT_VERSION}}"function hello () {cat <<'EOF'____ ____ _ _| _ \ ___ / ___| |__ __ _| |_| | | |/ _ \| | | '_ \ / _` | __|| |_| | (_) | |___| | | | (_| | |_|____/ \___/ \____|_| |_|\__,_|\__|https://github.com/huan/docker-wechat+--------------+/| /|/ | / |*--+-----------* || | | || | 盒裝 | || | 微信 | || +-----------+--+| / | /|/ |/*--------------*DoChat /dɑɑ?t??t/ (Docker-weChat) is:📦 a Docker image🤐 for running PC Windows WeChat💻 on your Linux desktop💖 by one-line of commandEOF }function pullUpdate () {if [ -n "$DOCHAT_SKIP_PULL" ]; thenreturnfiecho '🚀 Pulling the docker image...'echodocker pull "$DOCHAT_IMAGE_VERSION"echoecho '🚀 Pulling the docker image done.' }function main () {hellopullUpdateDEVICE_ARG=()for DEVICE in /dev/video* /dev/snd; doDEVICE_ARG+=('--device' "$DEVICE")doneecho '🚀 Starting DoChat /dɑɑ?t??t/ ...'echo# Issue #111 - https://github.com/huan/docker-wechat/issues/111rm -f "$HOME/DoChat/Applcation Data/Tencent/WeChat/All Users/config/configEx.ini"## --privileged: enable sound (/dev/snd/)# --ipc=host: enable MIT_SHM (XWindows)#docker run \"${DEVICE_ARG[@]}" \--name DoChat \--rm \-i \\-v "$HOME/DoChat/WeChat Files/":'/home/user/WeChat Files/' \-v "$HOME/DoChat/Applcation Data":'/home/user/.wine/drive_c/users/user/Application Data/' \-v /tmp/.X11-unix:/tmp/.X11-unix \\-e DISPLAY \-e DOCHAT_DEBUG \-e DOCHAT_DPI \\-e XMODIFIERS \-e GTK_IM_MODULE \-e QT_IM_MODULE \\-e AUDIO_GID="$(getent group audio | cut -d: -f3)" \-e VIDEO_GID="$(getent group video | cut -d: -f3)" \-e GID="$(id -g)" \-e UID="$(id -u)" \\--ipc=host \--privileged \\"$DOCHAT_IMAGE_VERSION"echoecho "📦 DoChat Exited with code [$?]"echoecho '🐞 Bug Report: https://github.com/huan/docker-wechat/issues'echo}main參考鏈接:
https://github.com/huan/docker-wechat
https://blog.csdn.net/weixin_33978451/article/details/113579293
總結
以上是生活随笔為你收集整理的使用docker运行微信wechat的安装脚本的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: linux清除history历史命令:h
- 下一篇: docker安装运行qq