Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
akiraohgaki
ocs-manager
Commits
6a45f013
Unverified
Commit
6a45f013
authored
Jun 16, 2018
by
akiraohgaki
Committed by
GitHub
Jun 16, 2018
Browse files
Merge pull request #39 from opendesktop/develop
Develop
parents
3805f3c9
74c97c38
Changes
5
Hide whitespace changes
Inline
Side-by-side
app/configs/application.json
View file @
6a45f013
{
"id"
:
"ocs-manager"
,
"name"
:
"ocs-manager"
,
"version"
:
"0.6.
3
"
,
"version"
:
"0.6.
4
"
,
"organization"
:
"Opendesktop.org"
,
"domain"
:
"org.opendesktop.ocs-manager"
,
"icon"
:
":/desktop/ocs-manager.svg"
,
...
...
app/src/handlers/updatehandler.cpp
View file @
6a45f013
...
...
@@ -160,14 +160,28 @@ void UpdateHandler::updateAppImage(const QString &itemKey)
metadata
[
"installed_item_obj"
]
=
installedItem
;
metadata
[
"new_filename"
]
=
filename
;
QString
assembledNewFilename
=
""
;
QString
rawNewFilename
=
""
;
auto
updateInformation
=
updater
->
describeAppImage
();
for
(
const
auto
&
info
:
updateInformation
.
split
(
"
\n
"
))
{
if
(
info
.
endsWith
(
".zsync"
,
Qt
::
CaseInsensitive
))
{
metadata
[
"new_filename"
]
=
info
.
split
(
"|"
).
last
().
split
(
"/"
).
last
().
replace
(
".zsync"
,
""
,
Qt
::
CaseInsensitive
);
break
;
if
(
info
.
startsWith
(
"Assembled ZSync URL:"
,
Qt
::
CaseInsensitive
))
{
assembledNewFilename
=
info
.
split
(
"/"
).
last
().
replace
(
".zsync"
,
""
,
Qt
::
CaseInsensitive
);
}
else
if
(
info
.
startsWith
(
"Raw update information:"
,
Qt
::
CaseInsensitive
))
{
rawNewFilename
=
info
.
split
(
"|"
).
last
().
split
(
"/"
).
last
().
replace
(
".zsync"
,
""
,
Qt
::
CaseInsensitive
);
}
}
}
if
(
!
assembledNewFilename
.
isEmpty
())
{
metadata
[
"new_filename"
]
=
assembledNewFilename
;
}
else
if
(
!
rawNewFilename
.
isEmpty
()
&&
!
rawNewFilename
.
contains
(
"*"
))
{
metadata
[
"new_filename"
]
=
rawNewFilename
;
}
metadataSet_
[
itemKey
]
=
metadata
;
emit
updateStarted
(
itemKey
,
true
);
...
...
i18n/messages.en_US.ts
View file @
6a45f013
...
...
@@ -4,107 +4,112 @@
<
context
>
<
name
>
ItemHandler
<
/name
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
55
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
53
"
/>
<
source
>
The
item
already
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
62
"
/>
<
source
>
The
file
already
downloading
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
6
9
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
7
6
"
/>
<
source
>
Downloading
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
1
19
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
1
25
"
/>
<
source
>
Invalid
OCS
-
URL
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
128
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
136
"
/>
<
source
>
The
item
not
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
142
"
/>
<
source
>
Uninstalling
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
197
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
212
"
/>
<
source
>
Uninstalled
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
22
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
37
"
/>
<
source
>
Downloaded
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
52
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
29
1
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
67
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
31
1
"
/>
<
source
>
Saving
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
6
4
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
06
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
8
4
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
28
"
/>
<
source
>
Failed
to
save
data
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
7
1
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
14
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
9
1
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
36
"
/>
<
source
>
Saved
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
31
9
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
4
1
"
/>
<
source
>
Installing
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
30
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
52
"
/>
<
source
>
The
file
has
been
installed
as
program
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
3
5
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
35
7
"
/>
<
source
>
The
plasmoid
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
40
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
62
"
/>
<
source
>
The
plasma
look
and
feel
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
345
"
/>
<
source
>
The
plasma
desktop
theme
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
350
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
372
"
/>
<
source
>
The
KWin
effect
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
55
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
77
"
/>
<
source
>
The
KWin
script
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
60
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
82
"
/>
<
source
>
The
KWin
window
switcher
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
63
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
85
"
/>
<
source
>
The
archive
file
has
been
extracted
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
66
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
380
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
88
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
402
"
/>
<
source
>
The
file
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
70
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
384
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
92
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
406
"
/>
<
source
>
Failed
to
installation
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
...
...
i18n/messages.ts
View file @
6a45f013
...
...
@@ -4,107 +4,112 @@
<
context
>
<
name
>
ItemHandler
<
/name
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
55
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
53
"
/>
<
source
>
The
item
already
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
62
"
/>
<
source
>
The
file
already
downloading
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
6
9
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
7
6
"
/>
<
source
>
Downloading
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
1
19
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
1
25
"
/>
<
source
>
Invalid
OCS
-
URL
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
128
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
136
"
/>
<
source
>
The
item
not
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
142
"
/>
<
source
>
Uninstalling
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
197
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
212
"
/>
<
source
>
Uninstalled
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
22
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
37
"
/>
<
source
>
Downloaded
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
52
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
29
1
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
67
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
31
1
"
/>
<
source
>
Saving
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
6
4
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
06
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
8
4
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
28
"
/>
<
source
>
Failed
to
save
data
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
7
1
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
14
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
2
9
1
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
36
"
/>
<
source
>
Saved
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
31
9
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
4
1
"
/>
<
source
>
Installing
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
30
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
52
"
/>
<
source
>
The
file
has
been
installed
as
program
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
3
5
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
35
7
"
/>
<
source
>
The
plasmoid
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
40
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
62
"
/>
<
source
>
The
plasma
look
and
feel
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
345
"
/>
<
source
>
The
plasma
desktop
theme
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
350
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
372
"
/>
<
source
>
The
KWin
effect
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
55
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
77
"
/>
<
source
>
The
KWin
script
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
60
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
82
"
/>
<
source
>
The
KWin
window
switcher
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
63
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
85
"
/>
<
source
>
The
archive
file
has
been
extracted
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
66
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
380
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
88
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
402
"
/>
<
source
>
The
file
has
been
installed
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
70
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
384
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
3
92
"
/>
<
location
filename
=
"
../app/src/handlers/itemhandler.cpp
"
line
=
"
406
"
/>
<
source
>
Failed
to
installation
<
/source
>
<
translation
type
=
"
unfinished
"
><
/translation
>
<
/message
>
...
...
pkg/appimage/appimagebuild
View file @
6a45f013
#!/bin/bash
PKGNAME
=
'ocs-manager'
PKGVER
=
'0.6.
3
'
PKGVER
=
'0.6.
4
'
PKGREL
=
'1'
curl
-fsSL
-o
linuxdeployqt https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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