diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..328392f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,44 @@ +matrix: + include: + - os: osx + osx_image: xcode9.4 + language: node_js + node_js: "10" + env: + - ELECTRON_CACHE=$HOME/.cache/electron + - ELECTRON_BUILDER_CACHE=$HOME/.cache/electron-builder + + - os: linux + services: docker + language: generic + +cache: + directories: + - node_modules + - $HOME/.cache/electron + - $HOME/.cache/electron-builder + +install: + - npm ci + +jobs: + include: + - + name: Lint + script: + - npm run lint + - + name: Deploy + if: branch = master + script: + - | + if [ "$TRAVIS_OS_NAME" == "linux" ]; then + docker run --rm \ + --env-file <(env | grep -iE 'DEBUG|NODE_|ELECTRON_|YARN_|NPM_|CI|CIRCLE|TRAVIS|APPVEYOR_|CSC_|_TOKEN|_KEY|AWS_|STRIP|BUILD_') \ + -v ${PWD}:/project \ + -v ~/.cache/electron:/root/.cache/electron \ + -v ~/.cache/electron-builder:/root/.cache/electron-builder \ + /bin/bash -c "npm run publish:linux" + else + npm run publish:mac + fi \ No newline at end of file diff --git a/package.json b/package.json index d9ceb8f..e48def4 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.4.0", "main": "background.js", "repository": "https://github.com/Kylart/KawAnime.git", + "description": "The ultimate otaku software", "author": { "name": "Kylart", "email": "Kylart.dev@gmail.com" @@ -16,6 +17,9 @@ "dist:mac": "npm run build -- --mac", "dist:win": "npm run build -- --win --x64 --ia32", "dist:linux": "npm run build -- --linux deb AppImage", + "publish:mac": "npm run build -- --mac -p always", + "publish:win": "npm run build -- --linux deb AppImage -p always", + "publish:linux": "npm run build -- --mac -p always", "lint": "vue-cli-service lint", "postinstall": "electron-builder install-app-deps", "postuninstall": "electron-builder install-app-deps", diff --git a/vue.config.js b/vue.config.js index 4838c4a..274de54 100644 --- a/vue.config.js +++ b/vue.config.js @@ -23,7 +23,7 @@ module.exports = { pluginOptions: { electronBuilder: { builderOptions: { - appId: 'KawAnime', + appId: 'com.kylart.kawanime', productName: 'KawAnime', dmg: { contents: [