Skip to content

Commit

Permalink
Add Linux Packages
Browse files Browse the repository at this point in the history
  • Loading branch information
axxop committed Oct 3, 2017
1 parent 4e41079 commit 12bcce9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
18 changes: 17 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,22 @@ $ 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.
[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.

The deb packages needs to be made executable after download:
```
$ sudo dpkg -i wewechat-1.0.0-amd64.deb
```

The rpm packages needs to be made executable after download:
```
$ sudo yum localinstall wewechat-1.0.0-x86_64.rpm
```


The AppImage needs to be made executable after download:
```
$ chmod u+x wewechat-1.0.0-x86_64.AppImage
Expand All @@ -66,6 +81,7 @@ Generate the binary:
* For Linux
```
$ npm run package-linux
Maybe you will install some depends packages.
```
* For 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 12bcce9

Please sign in to comment.