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
d097bd50
Commit
d097bd50
authored
Sep 11, 2021
by
神楽坂玲奈
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
dd21d890
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/app/apps.service.ts
src/app/apps.service.ts
+1
-1
No files found.
src/app/apps.service.ts
View file @
d097bd50
...
@@ -653,7 +653,7 @@ export class AppsService {
...
@@ -653,7 +653,7 @@ export class AppsService {
Logger
.
info
(
'
Update changed files:
'
,
changedFiles
);
Logger
.
info
(
'
Update changed files:
'
,
changedFiles
);
const
locale
=
[
'
zh-Hans
'
,
'
en-US
'
,
'
ja-JP
'
].
includes
(
this
.
locale
)
?
this
.
locale
:
'
en-US
'
;
const
locale
=
[
'
zh-Hans
'
,
'
en-US
'
,
'
ja-JP
'
].
includes
(
this
.
locale
)
?
this
.
locale
:
'
en-US
'
;
let
updateUrl
=
App
.
updateUrl
(
app
,
process
.
platform
,
locale
,
os
.
arch
());
let
updateUrl
=
App
.
updateUrl
(
app
,
process
.
platform
,
locale
,
os
.
arch
());
let
metalink
=
await
lastValueFrom
(
this
.
http
.
post
(
updateUrl
,
changedFiles
,
{
responseType
:
'
text
'
}));
let
metalink
=
await
lastValueFrom
(
this
.
http
.
post
(
updateUrl
,
[...
changedFiles
].
sort
()
,
{
responseType
:
'
text
'
}));
let
downloadDir
=
path
.
join
(
path
.
dirname
(
app
.
local
!
.
path
),
'
downloading
'
);
let
downloadDir
=
path
.
join
(
path
.
dirname
(
app
.
local
!
.
path
),
'
downloading
'
);
let
downloadId
=
await
this
.
downloadService
.
addMetalink
(
metalink
,
downloadDir
);
let
downloadId
=
await
this
.
downloadService
.
addMetalink
(
metalink
,
downloadDir
);
await
this
.
downloadService
.
progress
(
downloadId
,
(
status
:
DownloadStatus
)
=>
{
await
this
.
downloadService
.
progress
(
downloadId
,
(
status
:
DownloadStatus
)
=>
{
...
...
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