Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
antSword
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HuangJunbo
antSword
Commits
4a094464
Commit
4a094464
authored
Aug 30, 2018
by
Medicean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git 用户更新时使用 git 更新
parent
9f71bb15
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
0 deletions
+8
-0
app.entry.js
source/app.entry.js
+6
-0
en.js
source/language/en.js
+1
-0
zh.js
source/language/zh.js
+1
-0
No files found.
source/app.entry.js
View file @
4a094464
...
...
@@ -308,6 +308,12 @@ ipcRenderer
form
.
attachEvent
(
"onButtonClick"
,
(
name
)
=>
{
switch
(
name
)
{
case
"updatebtn"
:
var
workdir
=
antSword
.
remote
.
process
.
env
.
AS_WORKDIR
;
if
(
fs
.
existsSync
(
path
.
join
(
workdir
,
".git/"
))){
win
.
close
();
layer
.
alert
(
LANG
[
"message"
][
"githint"
](
workdir
));
return
}
const
hash
=
(
String
(
+
new
Date
)
+
String
(
Math
.
random
())).
substr
(
10
,
10
).
replace
(
'.'
,
'_'
);
//折叠
win
.
win
.
park
();
...
...
source/language/en.js
View file @
4a094464
...
...
@@ -454,6 +454,7 @@ module.exports = {
}
},
message
:
{
githint
:
(
workdir
)
=>
`The current source is Git management, please close the program and go to
${
workdir
}
to manually update`
,
prepare
:
"Connecte to server..."
,
dling
:
(
progress
)
=>
`Downloading...
${
progress
}
%`
,
dlingnp
:
(
size
)
=>
`Downloading...
${
size
}
`
,
...
...
source/language/zh.js
View file @
4a094464
...
...
@@ -455,6 +455,7 @@ module.exports = {
}
},
message
:
{
githint
:
(
workdir
)
=>
`当前源码为Git管理,请关闭程序并前往
${
workdir
}
手动更新`
,
prepare
:
"连接更新服务器..."
,
dling
:
(
progress
)
=>
`正在下载更新包...
${
progress
}
%`
,
dlingnp
:
(
size
)
=>
`正在下载更新包...
${
size
}
`
,
...
...
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