Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyoubo committed Nov 26, 2018
1 parent aeda877 commit 95a6bff
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 26 deletions.
32 changes: 19 additions & 13 deletions .travis.yml
@@ -1,23 +1,29 @@
osx_image: xcode8.3
sudo: required
dist: trusty
sudo: required

language: node_js
node_js: "8"
env:
global:
- ELECTRON_CACHE=$HOME/.cache/electron
- ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder
os:
- linux
- osx
node_js:
- "node"

matrix:
include:
- os: linux
before_install:
- sudo apt-get -qq update
- sudo apt-get install --no-install-recommends -y gcc-multilib g++-multilib
- sudo apt-get install --no-install-recommends -y rpm
- os: osx

cache:
directories:
- node_modules
- "$HOME/.electron"
- "$HOME/.cache/electron-builder"
- "$HOME/.cache"

install:
- npm install

script:
- npm run build

branches:
only:
- master
14 changes: 5 additions & 9 deletions appveyor.yml
Expand Up @@ -2,21 +2,17 @@ branches:
only:
- master

platform:
- x64
- x86
image: Visual Studio 2017
platform: Any CPU

cache:
- node_modules
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
environment:
nodejs_version: 8

init:
- git config --global core.autocrlf input

install:
- ps: Install-Product node 8 x64
- git reset --hard HEAD
- ps: Install-Product node $env:nodejs_version
- npm install
- node --version

Expand Down
31 changes: 27 additions & 4 deletions package.json
Expand Up @@ -27,15 +27,20 @@
"postinstall": "npm run lint:fix"
},
"build": {
"productName": "HexoClient",
"appId": "org.mspring.hexo.client",
"productName": "HexoClient",
"directories": {
"output": "build"
},
"files": [
"dist/electron/**/*",
"build/icons/*"
],
"publish": {
"provider": "github",
"owner": "gaoyoubo",
"repo": "hexo-client"
},
"dmg": {
"contents": [
{
Expand All @@ -61,9 +66,27 @@
"linux": {
"category": "Utility",
"target": [
"deb",
"AppImage",
"rpm"
{
"target": "AppImage",
"arch": [
"x64",
"ia32"
]
},
{
"target": "deb",
"arch": [
"x64",
"ia32"
]
},
{
"target": "rpm",
"arch": [
"x64",
"ia32"
]
}
],
"icon": "build/icons"
}
Expand Down

0 comments on commit 95a6bff

Please sign in to comment.