Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
mycard
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
syntax_j
mycard
Commits
71684161
Commit
71684161
authored
Dec 05, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6a33d0bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
8 deletions
+10
-8
app/apps.service.ts
app/apps.service.ts
+4
-4
app/ygopro.component.ts
app/ygopro.component.ts
+5
-2
apps.json
apps.json
+1
-2
No files found.
app/apps.service.ts
View file @
71684161
...
...
@@ -10,10 +10,10 @@ import {remote} from "electron";
import
"
rxjs/Rx
"
;
import
{
AppLocal
}
from
"
./app-local
"
;
import
*
as
ini
from
"
ini
"
;
import
Timer
=
NodeJS
.
Timer
;
import
{
DownloadService
}
from
"
./download.service
"
;
import
{
InstallOption
}
from
"
./install-option
"
;
import
{
InstallService
}
from
"
./install.service
"
;
import
Timer
=
NodeJS
.
Timer
;
const
Aria2
=
require
(
'
aria2
'
);
const
sudo
=
require
(
'
electron-sudo
'
);
...
...
@@ -145,8 +145,8 @@ export class AppsService {
let
currentUnit
=
Math
.
floor
(
Math
.
log
(
currentSpeed
)
/
Math
.
log
(
1024
));
console
.
log
(
currentSpeed
,
currentUnit
);
app
.
status
.
progressMessage
=
(
currentSpeed
/
1024
**
currentUnit
).
toFixed
(
1
)
+
"
"
+
speedUnit
[
currentUnit
];
}
else
{
app
.
status
.
progressMessage
=
''
;
}
else
{
app
.
status
.
progressMessage
=
''
;
}
this
.
ref
.
tick
();
},
(
error
)
=>
{
...
...
@@ -358,7 +358,7 @@ export class AppsService {
// 如果还是在界面上显示的那个连接
if
(
this
.
connections
.
get
(
app
)
==
connection
)
{
this
.
connections
.
delete
(
app
);
if
(
event
.
code
!=
1000
&&
!
(
<
Connection
>
connection
)
.
address
)
{
if
(
event
.
code
!=
1000
&&
!
connection
!
.
address
)
{
alert
(
`出错了
${
event
.
code
}
`
);
}
}
...
...
app/ygopro.component.ts
View file @
71684161
...
...
@@ -261,9 +261,12 @@ export class YGOProComponent implements OnInit {
start_game
(
args
:
string
[])
{
let
win
=
remote
.
getCurrentWindow
();
win
.
minimize
();
console
.
log
(
path
.
join
(
(
<
AppLocal
>
this
.
app
.
local
).
path
,
(
<
any
>
this
.
app
.
actions
.
get
(
'
main
'
)).
execute
),
args
,
{
cwd
:
(
<
AppLocal
>
this
.
app
.
local
)
.
path
});
console
.
log
(
path
.
join
(
this
.
app
.
local
!
.
path
,
this
.
app
.
actions
.
get
(
'
main
'
)
!
.
execute
),
args
,
{
cwd
:
this
.
app
.
local
!
.
path
});
return
new
Promise
((
resolve
,
reject
)
=>
{
let
child
=
child_process
.
spawn
(
path
.
join
((
<
AppLocal
>
this
.
app
.
local
).
path
,
(
<
any
>
this
.
app
.
actions
.
get
(
'
main
'
)).
execute
),
args
,
{
cwd
:
(
<
AppLocal
>
this
.
app
.
local
).
path
});
let
child
=
child_process
.
spawn
(
path
.
join
(
this
.
app
.
local
!
.
path
,
this
.
app
.
actions
.
get
(
'
main
'
)
!
.
execute
),
args
,
{
cwd
:
this
.
app
.
local
!
.
path
,
stdio
:
'
inherit
'
});
child
.
on
(
'
error
'
,
(
error
)
=>
{
reject
(
error
);
win
.
restore
()
...
...
apps.json
View file @
71684161
...
...
@@ -1411,8 +1411,7 @@
"directx"
],
"darwin"
:
[
"wine"
,
"directx"
"wine"
]
},
"references"
:
{
...
...
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