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
489e5cf2
Commit
489e5cf2
authored
Dec 07, 2016
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix auto update
parent
454228bc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
app/mycard.component.ts
app/mycard.component.ts
+1
-1
index.js
index.js
+6
-1
package.json
package.json
+1
-1
No files found.
app/mycard.component.ts
View file @
489e5cf2
...
...
@@ -14,7 +14,7 @@ declare const $: any;
export
class
MyCardComponent
implements
OnInit
{
currentPage
:
string
=
"
lobby
"
;
update_status
:
string
|
undefined
;
update_status
:
string
|
undefined
=
remote
.
getGlobal
(
'
update_status
'
)
;
update_error
:
string
|
undefined
;
currentWindow
=
remote
.
getCurrentWindow
();
window
=
window
;
...
...
index.js
View file @
489e5cf2
...
...
@@ -74,18 +74,23 @@ if (process.env['NODE_ENV'] == 'production' && process.platform == 'darwin') {
// }, 6000)
// }
autoUpdater
.
on
(
'
error
'
,
(
event
)
=>
{
global
.
update_status
=
'
error
'
;
console
.
log
(
'
autoUpdater
'
,
'
error
'
,
event
);
});
autoUpdater
.
on
(
'
checking-for-update
'
,
()
=>
{
global
.
update_status
=
'
checking-for-update
'
;
console
.
log
(
'
autoUpdater
'
,
'
checking-for-update
'
);
});
autoUpdater
.
on
(
'
update-available
'
,
()
=>
{
global
.
update_status
=
'
update-available
'
;
console
.
log
(
'
autoUpdater
'
,
'
update-available
'
);
});
autoUpdater
.
on
(
'
update-not-available
'
,
()
=>
{
global
.
update_status
=
'
update-not-available
'
;
console
.
log
(
'
autoUpdater
'
,
'
update-not-available
'
);
});
autoUpdater
.
on
(
'
update-downloaded
'
,
(
event
)
=>
{
global
.
update_status
=
'
update-downloaded
'
;
console
.
log
(
'
autoUpdater
'
,
'
update-downloaded
'
,
event
);
updateWindow
=
new
BrowserWindow
({
width
:
640
,
...
...
@@ -180,7 +185,7 @@ function createTray() {
app
.
on
(
'
ready
'
,
()
=>
{
createWindow
();
if
(
process
.
env
[
'
NODE_ENV
'
]
==
'
production
'
)
{
setTimeout
(
autoUpdater
.
checkForUpdates
,
2000
);
autoUpdater
.
checkForUpdates
()
}
if
(
process
.
platform
==
'
win32
'
)
{
createTray
()
...
...
package.json
View file @
489e5cf2
{
"name"
:
"mycard"
,
"version"
:
"3.0.0-dev.1
5
"
,
"version"
:
"3.0.0-dev.1
6
"
,
"description"
:
"mycard"
,
"keywords"
:
[],
"author"
:
"zh99998 <zh99998@gmail.com>"
,
...
...
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