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

CI

parent db84bf12
......@@ -30,9 +30,19 @@ cache:
- $HOME/.electron
- $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:
- npm install
- npm prune
script:
- npm run dist
\ No newline at end of file
- 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:
password:
secure: Eu+oVcSuxpc6BVmjxSgM2yBCRnwRsoUye8QCkaIGlX4=
folder:
secure: I/l1mtYuzA7y/ujuCXCahQ==
secure: /data/upload
on:
appveyor_repo_tag: true
\ No newline at end of file
......@@ -3,13 +3,16 @@
const electron = require('electron');
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('checking-for-update', (event)=>console.log('checking-for-update', event));
autoUpdater.on('update-available', (event)=>console.log('update-available', event));
autoUpdater.on('update-not-available', (event)=>console.log('update-not-available', event));
autoUpdater.checkForUpdates();
console.log(1);
let updateWindow;
autoUpdater.on('update-downloaded', (event)=> {
......
......@@ -60,7 +60,7 @@
"publish": [
{
"provider": "generic",
"url": "https://wudizhanche.mycard.moe/publish"
"url": "https://wudizhanche.mycard.moe/downloads"
},
{
"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