Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
deepin-wine微信更新并封装files.7z
deepin Talks
1323
views ·
2
replies ·
To
floor
Go
夜の乐
deepin
2018-05-24 00:23
Author
本帖最后由 netxy 于 2018-5-23 16:31 编辑
原文链接:
http://yenole.com/2018/05/23/%E5 ... %E5%BA%94%E7%94%A8/
### 原理
* 使用7z命令修改官方封装后的files.7z文件
### 更新微信为例
* 下载新版
```
wget
http://dldir1.qq.com/weixin/Windows/WeChatSetup.exe
```
* 使用deepin-wine命令安装
```
# WINEPREFIX设置wine容器目录
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine WeChatSetup.exe
```
* 安装好新版微信同window
* 新版运行问题就需要解决问题后再封包
### 封装files.7z
* 复制files.7z
```
# 复制files.7z到容器目录中,为什么是容器目录,是为了后续方便,也可以是其他目录
cp /opt/deepinwine/apps/Deepin-WeChat/files.7z ~/.deepinwine/Deepin-WeChat/
```
* 删除files.7z文件中旧版微信
```
# 其实也可以不删除,直接添加新版到files.7z中
7z d ./files.7z drive_c/Program\ Files/Tencent/WeChat/
```
* 添加新版本客户端
```
# 如果软件有写入注册表数据,还需要添加“system.reg、userdef.reg、user.reg”
7z a ./files.7z drive_c/Program\ Files/Tencent/WeChat/
```
* 替换原files.7z文件
```
# 替换文件
sudo cp ./files.7z /opt/deepinwine/apps/Deepin-WeChat/files.7z
# 修改run.sh文件版本
sudo nano /opt/deepinwine/apps/Deepin-WeChat/run.sh
```
Reply
Like 0
Favorite
View the author
All Replies
要讲武德
deepin
2018-05-24 00:27
#1
不支持markdown
Reply
Like 0
View the author
夜の乐
deepin
2018-05-24 00:28
#2
https://bbs.deepin.org/post/156891
不支持markdown
是啊,可惜了
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
【Enhanced Repo】Better Deepin Repo is released
How to fix grub boot menu that has disappeared?
Popular Events
More
原文链接:http://yenole.com/2018/05/23/%E5 ... %E5%BA%94%E7%94%A8/
### 原理
* 使用7z命令修改官方封装后的files.7z文件
### 更新微信为例
* 下载新版
```
wget http://dldir1.qq.com/weixin/Windows/WeChatSetup.exe
```
* 使用deepin-wine命令安装
```
# WINEPREFIX设置wine容器目录
WINEPREFIX=~/.deepinwine/Deepin-WeChat deepin-wine WeChatSetup.exe
```
* 安装好新版微信同window
* 新版运行问题就需要解决问题后再封包
### 封装files.7z
* 复制files.7z
```
# 复制files.7z到容器目录中,为什么是容器目录,是为了后续方便,也可以是其他目录
cp /opt/deepinwine/apps/Deepin-WeChat/files.7z ~/.deepinwine/Deepin-WeChat/
```
* 删除files.7z文件中旧版微信
```
# 其实也可以不删除,直接添加新版到files.7z中
7z d ./files.7z drive_c/Program\ Files/Tencent/WeChat/
```
* 添加新版本客户端
```
# 如果软件有写入注册表数据,还需要添加“system.reg、userdef.reg、user.reg”
7z a ./files.7z drive_c/Program\ Files/Tencent/WeChat/
```
* 替换原files.7z文件
```
# 替换文件
sudo cp ./files.7z /opt/deepinwine/apps/Deepin-WeChat/files.7z
# 修改run.sh文件版本
sudo nano /opt/deepinwine/apps/Deepin-WeChat/run.sh
```