Commit dd1962a6 authored by 神楽坂玲奈's avatar 神楽坂玲奈

appveyor

parent 8e1b937b
......@@ -16,14 +16,16 @@ cache:
- '%APPDATA%\npm-cache'
- '%USERPROFILE%\.electron'
shallow_clone: true
init:
- git config --global core.autocrlf input
install:
- ps: Install-Product node 6 $env:platform
- git reset --hard HEAD
- ps: Install-Product node # 6 $env:platform
#- git reset --hard HEAD
- npm install npm -g
- npm install electron-builder
# - npm install electron-builder
- npm install
- npm prune
......
......@@ -3,7 +3,7 @@
* Created by weijian on 2016/10/27.
*/
const Rx = require("rxjs/Rx");
const {ipcMain} = require('electron');
const { ipcMain } = require('electron');
const child_process_1 = require("child_process");
// import * as Aria2 from "aria2";
const Aria2 = require("aria2");
......@@ -15,7 +15,7 @@ a.on('error', (error) => {
function createProcess(aria2c_path, args = []) {
return child_process_1.spawn(aria2c_path, args);
}
let options = {'host': 'localhost', 'port': 6800, 'secure': false};
let options = { 'host': 'localhost', 'port': 6800, 'secure': false };
let aria2 = new Aria2(options);
aria2.onDownloadComplete = (response) => {
console.log(response);
......
{
"version": 3,
"file": "aria2.js",
"sourceRoot": "",
"sources": [
"aria2.ts"
],
"names": [],
"mappings": ";AAAA;;GAEG;AACH,MAAM,EAAE,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAC9B,MAAM,EAAC,OAAO,EAAC,GAAE,OAAO,CAAC,UAAU,CAAC,CAAC;AACrC,gCAAkC,eAAe,CAAC,CAAA;AAClD,kCAAkC;AAClC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAE/B,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,iCAAiC,EAAE,CAAC,cAAc,EAAE,wBAAwB,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAA;AAC3L,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK;IAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AAC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AE,wBAAwB,EAAE,YAAY,EAAE,YAAY,EAAE,qBAAqB,EAAE,gCAAgC,CAAC,CAAC,CAAC,CAAA;AAC3L,CAAC,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK;IAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AACH,wBAAwB;AACxB,uBAAuB,WAAmB,EAAE,IAAI,GAAa,EAAE;IAC3D,MAAM,CAAC,qBAAK,CAAC,WAAW,EAAE,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,IAAI,OAAO,GAAG,EAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAA;AAClE,IAAI,KAAK,GAAG,IAAI,KAAK,CAAC,OAAO,CAAC,CAAC;AAE/B,KAAK,CAAC,kBAAkB,GAAG,CAAC,QAAQ;IAChC,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC1B,CAAC,CAAC;AAEF,IAAI,IAAI,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC;AACxB,gBAAgB,GAAa,EAAE,IAAY;IACvC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;QACb,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,EAAE,EAAC,KAAK,EAAE,IAAI,EAAC,CAAC,CAAC;IAC5C,CAAC,CAAC,CAAC;AACP,CAAC;AACD,eAAe,GAAW;IACtB,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;AAC3B,CAAC;AAED;IACI,KAAK,CAAC,UAAU,EAAE,CAAA;AACtB,CAAC;AAED,cAAc"}
\ No newline at end of file
......@@ -59,8 +59,9 @@
"appId": "com.mycard.mycard",
"category": "public.app-category.social-networking",
"win": {
"iconUrl": "http://mycard.moe/logo.png",
"remoteReleases": true
"target": [
"nsis"
]
},
"mac": {
"target": "dmg"
......
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