Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
moecube
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JoyJ
moecube
Commits
dd1962a6
Commit
dd1962a6
authored
Nov 02, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
appveyor
parent
8e1b937b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
17 deletions
+11
-17
appveyor.yml
appveyor.yml
+5
-3
aria2.js
aria2.js
+2
-2
aria2.js.map
aria2.js.map
+1
-10
package.json
package.json
+3
-2
No files found.
appveyor.yml
View file @
dd1962a6
...
@@ -16,14 +16,16 @@ cache:
...
@@ -16,14 +16,16 @@ cache:
-
'
%APPDATA%\npm-cache'
-
'
%APPDATA%\npm-cache'
-
'
%USERPROFILE%\.electron'
-
'
%USERPROFILE%\.electron'
shallow_clone
:
true
init
:
init
:
-
git config --global core.autocrlf input
-
git config --global core.autocrlf input
install
:
install
:
-
ps
:
Install-Product node 6 $env:platform
-
ps
:
Install-Product node
#
6 $env:platform
-
git reset --hard HEAD
#
- git reset --hard HEAD
-
npm install npm -g
-
npm install npm -g
-
npm install electron-builder
#
- npm install electron-builder
-
npm install
-
npm install
-
npm prune
-
npm prune
...
...
aria2.js
View file @
dd1962a6
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* Created by weijian on 2016/10/27.
* Created by weijian on 2016/10/27.
*/
*/
const
Rx
=
require
(
"
rxjs/Rx
"
);
const
Rx
=
require
(
"
rxjs/Rx
"
);
const
{
ipcMain
}
=
require
(
'
electron
'
);
const
{
ipcMain
}
=
require
(
'
electron
'
);
const
child_process_1
=
require
(
"
child_process
"
);
const
child_process_1
=
require
(
"
child_process
"
);
// import * as Aria2 from "aria2";
// import * as Aria2 from "aria2";
const
Aria2
=
require
(
"
aria2
"
);
const
Aria2
=
require
(
"
aria2
"
);
...
@@ -15,7 +15,7 @@ a.on('error', (error) => {
...
@@ -15,7 +15,7 @@ a.on('error', (error) => {
function
createProcess
(
aria2c_path
,
args
=
[])
{
function
createProcess
(
aria2c_path
,
args
=
[])
{
return
child_process_1
.
spawn
(
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
);
let
aria2
=
new
Aria2
(
options
);
aria2
.
onDownloadComplete
=
(
response
)
=>
{
aria2
.
onDownloadComplete
=
(
response
)
=>
{
console
.
log
(
response
);
console
.
log
(
response
);
...
...
aria2.js.map
View file @
dd1962a6
{
{"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,YAA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of file
package.json
View file @
dd1962a6
...
@@ -59,8 +59,9 @@
...
@@ -59,8 +59,9 @@
"appId"
:
"com.mycard.mycard"
,
"appId"
:
"com.mycard.mycard"
,
"category"
:
"public.app-category.social-networking"
,
"category"
:
"public.app-category.social-networking"
,
"win"
:
{
"win"
:
{
"iconUrl"
:
"http://mycard.moe/logo.png"
,
"target"
:
[
"remoteReleases"
:
true
"nsis"
]
},
},
"mac"
:
{
"mac"
:
{
"target"
:
"dmg"
"target"
:
"dmg"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment