Skip to content

Commit

Permalink
Merge pull request trazyn#47 from Mrlk/master
Browse files Browse the repository at this point in the history
Add Linux Packages.
  • Loading branch information
衣带渐宽人渐悔 authored Oct 3, 2017
2 parents 4e41079 + 5b6ca40 commit d83abbe
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
20 changes: 18 additions & 2 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,25 @@ $ brew cask install wewechat
```

#### Linux
[Download](https://github.com/trazyn/weweChat/releases/download/1.0.0/wewechat-1.0.0-x86_64.AppImage) the `.AppImage` file.
The AppImage needs to be made executable after download:
[Download](https://github.com/trazyn/weweChat/releases/download/)
Centos/RHEL please download `.rpm` packages.
Debian/Ubuntu please download `.deb` pacages.
Other linux distribution please download `.AppImage` packages.

Install deb package for Debian / Ubuntu:
```
$ sudo dpkg -i wewechat-1.0.0-amd64.deb
```

Install rpm package for Centos / RHEL:
```
$ sudo yum localinstall wewechat-1.0.0-x86_64.rpm
```

Install AppImage package for other linux distribution:
```
$ chmod u+x wewechat-1.0.0-x86_64.AppImage
$ ./wewechat-1.0.0-x86_64.AppImage
```

#### Windows
Expand All @@ -67,6 +82,7 @@ Generate the binary:
```
$ npm run package-linux
```
Maybe you will install some depends packages.
* For Mac
```
$ npm run package-mac
Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"start-hot": "cross-env HOT=1 NODE_ENV=development ./node_modules/.bin/electron -r babel-register -r babel-polyfill ./main",
"dev": "concurrently --kill-others \"npm run hot-server\" \"npm run start-hot\""
},
"author": "[email protected]",
"author": {
"email":"[email protected]"
},
"repository": {
"type": "git",
"url": "https://github.com/trazyn/weweChat.git"
Expand Down Expand Up @@ -51,7 +53,10 @@
},
"linux": {
"icon": "../resource",
"category": "Chat"
"category": "Chat",
"target": [
"deb", "rpm", "AppImage"
]
},
"win": {
"target": "nsis"
Expand Down Expand Up @@ -112,7 +117,7 @@
"babel-register": "^6.24.1",
"concurrently": "^3.5.0",
"copy-webpack-plugin": "^4.0.1",
"cross-env": "^5.0.1",
"cross-env": "^5.0.5",
"css-loader": "^0.28.4",
"electron": "^1.6.11",
"electron-builder": "^19.24.1",
Expand Down

0 comments on commit d83abbe

Please sign in to comment.