Skip to content

Commit

Permalink
Merge pull request wszqkzqk#97 from abcfy2/master
Browse files Browse the repository at this point in the history
更新online_install.sh脚本,使用Release地址安装
  • Loading branch information
wszqkzqk authored Apr 20, 2019
2 parents d9f574c + f8a30cf commit b82fefe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@

### (1)安装教程

#### 在线安装

直接使用在线安装脚本,安装最新的Release版本:

```bash
wget -qO- https://raw.githubusercontent.com/wszqkzqk/deepin-wine-ubuntu/master/online_install.sh | bash -e
```

#### 本地安装

* 克隆 (`git clone https://github.com/wszqkzqk/deepin-wine-ubuntu.git`) 或[下载](https://github.com/wszqkzqk/deepin-wine-ubuntu/archive/master.zip)到本地。
* 在中国推荐用下面的地址,速度更快: (`git clone https://gitee.com/wszqkzqk/deepin-wine-for-ubuntu.git`)
* 当然也可以选择下载releases:[Github](https://github.com/wszqkzqk/deepin-wine-ubuntu/releases) 或者
Expand Down
9 changes: 5 additions & 4 deletions online_install.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash -e

TMP_DIR="$(mktemp -d)"
DOWNLOAD_URL_PREFIX="https://github.com/wszqkzqk/deepin-wine-ubuntu/blob/master"
RELEASE_ASSERTS_URL="$(wget -qO- -T10 --tries=10 --retry-connrefused https://api.github.com/repos/wszqkzqk/deepin-wine-ubuntu/releases/latest | grep browser_download_url | cut -d '"' -f 4)"

echo "开始下载deepin-wine安装包, 请稍后..."
wget -P "${TMP_DIR}" --content-disposition -c -T10 --tries=10 -q --show-progress "${DOWNLOAD_URL_PREFIX}"/{1.1udis86_1.72-2_i386.deb,1.2deepin-fonts-wine_2.18-12_all.deb,2.1deepin-libwine_2.18-12_i386.deb,2.2deepin-libwine-dbg_2.18-12_i386.deb,2.3deepin-libwine-dev_2.18-12_i386.deb,3.1deepin-wine32_2.18-12_i386.deb,3.2deepin-wine32-preloader_2.18-12_i386.deb,3.3deepin-wine32-tools_2.18-12_i386.deb,4deepin-wine_2.18-12_all.deb,5deepin-wine-binfmt_2.18-12_all.deb,6.1deepin-wine-plugin_1.0deepin2_amd64.deb,6.2deepin-wine-plugin-virtual_1.0deepin1_all.deb,7deepin-wine-helper_1.1deepin12_i386.deb,8deepin-wine-uninstaller_0.1deepin2_i386.deb}"?raw=true"
echo "开始下载deepin-wine安装包: ${RELEASE_ASSERTS_URL}, 请稍后..."
cd "${TMP_DIR}"
wget -c -T10 --tries=10 --show-progress -qO- "${RELEASE_ASSERTS_URL}" | tar zxf -

echo "正在安装, 请稍后"
echo "正在安装, 请稍后(需要sudo提权)"
sudo dpkg --add-architecture i386
sudo apt update && sudo apt install -y "${TMP_DIR}"/*.deb

Expand Down

0 comments on commit b82fefe

Please sign in to comment.