Commit 06db45c2 authored by 神楽坂玲奈's avatar 神楽坂玲奈

CI

parent db84bf12
...@@ -30,9 +30,19 @@ cache: ...@@ -30,9 +30,19 @@ cache:
- $HOME/.electron - $HOME/.electron
- $HOME/.cache - $HOME/.cache
before_install:
- openssl aes-256-cbc -K $encrypted_c268b785a48e_key -iv $encrypted_c268b785a48e_iv -in ssh-key.enc -out $HOME/.ssh/id_ecdsa -d
- chmod 600 $HOME/.ssh/id_ecdsa
install: install:
- npm install - npm install
- npm prune - npm prune
script: script:
- npm run dist - npm run dist
deploy:
provider: script
script: if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then scp dist/mac/MyCard-$TRAVIS_TAG.dmg dist/mac/MyCard-$TRAVIS_TAG-mac.zip root@wudizhanche.mycard.moe; else ls -r; fi
on:
tags: true
\ No newline at end of file
...@@ -55,6 +55,6 @@ deploy: ...@@ -55,6 +55,6 @@ deploy:
password: password:
secure: Eu+oVcSuxpc6BVmjxSgM2yBCRnwRsoUye8QCkaIGlX4= secure: Eu+oVcSuxpc6BVmjxSgM2yBCRnwRsoUye8QCkaIGlX4=
folder: folder:
secure: I/l1mtYuzA7y/ujuCXCahQ== secure: /data/upload
on: on:
appveyor_repo_tag: true appveyor_repo_tag: true
\ No newline at end of file
...@@ -3,13 +3,16 @@ ...@@ -3,13 +3,16 @@
const electron = require('electron'); const electron = require('electron');
const autoUpdater = require("electron-auto-updater").autoUpdater; const autoUpdater = require("electron-auto-updater").autoUpdater;
if (process.platform == 'darwin') {
autoUpdater.setFeedURL("https://wudizhanche.mycard.moe/update");
}
// autoUpdater.setFeedURL("https://wudizhanche.mycard.moe/publish");
autoUpdater.on('error', (event)=>console.log('error', event)); autoUpdater.on('error', (event)=>console.log('error', event));
autoUpdater.on('checking-for-update', (event)=>console.log('checking-for-update', event)); autoUpdater.on('checking-for-update', (event)=>console.log('checking-for-update', event));
autoUpdater.on('update-available', (event)=>console.log('update-available', event)); autoUpdater.on('update-available', (event)=>console.log('update-available', event));
autoUpdater.on('update-not-available', (event)=>console.log('update-not-available', event)); autoUpdater.on('update-not-available', (event)=>console.log('update-not-available', event));
autoUpdater.checkForUpdates(); autoUpdater.checkForUpdates();
console.log(1);
let updateWindow; let updateWindow;
autoUpdater.on('update-downloaded', (event)=> { autoUpdater.on('update-downloaded', (event)=> {
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
"publish": [ "publish": [
{ {
"provider": "generic", "provider": "generic",
"url": "https://wudizhanche.mycard.moe/publish" "url": "https://wudizhanche.mycard.moe/downloads"
}, },
{ {
"provider": "github" "provider": "github"
......
File added
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment