Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
sudo: required
dist: trusty

language: c

matrix:
include:
- os: osx
# - os: linux
# env: CC=clang CXX=clang++ npm_config_clang=1
# compiler: clang

node_js:
- 6

cache:
directories:
- node_modules

addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- icnsutils
- graphicsmagick
- libgnome-keyring-dev
- xz-utils
- xorriso
- xvfb

install:
- nvm install 6
- npm install electron-builder@next
- npm install
- export DISPLAY=':99.0'
- Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start &
- sleep 3

script:
- npm run dist
23 changes: 19 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{
"author": {
"name": "Yu-Jen Lin",
"url": "https://github.com/yjlintw/comic-reader"
},
"name": "comic-reader",
"version": "0.1.5",
"description": "A simple comic reader app",
Expand All @@ -8,23 +12,34 @@
"devtron": "^1.4.0",
"livereloadx": "^0.3.9",
"node-sass": "^4.5.2",
"nodemon": "^1.11.0"
"nodemon": "^1.11.0",
"electron": "^1.6.2",
"electron-debug": "^1.1.0",
"electron-builder": "^17.0.1"
},
"scripts": {
"start": "electron .",
"reload": "livereloadx",
"build-css": "node-sass --include-path scss assets/scss/main.scss assets/css/main.css",
"watch-css": "nodemon -e scss -x \"npm run build-css\"",
"dev": "concurrently --kill-others \"npm run reload\" \"npm run start\" \"npm run watch-css\""
"dev": "concurrently --kill-others \"npm run reload\" \"npm run start\" \"npm run watch-css\"",
"pack": "build --dir",
"dist": "build "
},
"dependencies": {
"about-window": "^1.6.1",
"async": "^2.3.0",
"electron": "^1.6.2",
"electron-debug": "^1.1.0",
"electron-settings": "^3.0.14",
"node-notifier": "^5.1.2",
"node-schedule": "^1.2.1",
"request": "^2.81.0"
},
"build": {
"appId": "com.comicreader.comicreader",
"mac": {
"category": "public.app-category.entertainment",
"target": ["dmg"],
"icon": "assets/icons/icon.icns"
}
}
}