Skip to content

Commit 3c204d7

Browse files
authored
Merge pull request #274 from aaronhuggins/master
Update app to latest document server
2 parents 86c6df8 + 100a0d2 commit 3c204d7

5 files changed

Lines changed: 26 additions & 16 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
3rdparty/onlyoffice
22
build
3+
oo-extract
4+
*.rpm

Makefile

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,24 @@ clean:
1414

1515
3rdparty/onlyoffice/documentserver:
1616
mkdir -p 3rdparty/onlyoffice
17-
docker create --name oo-extract onlyoffice/documentserver:6.4.2.6
18-
docker cp oo-extract:/var/www/onlyoffice/documentserver 3rdparty/onlyoffice
19-
docker rm oo-extract
20-
rm -r 3rdparty/onlyoffice/documentserver/server/{Common,DocService}
21-
cd 3rdparty/onlyoffice/documentserver/server/FileConverter/bin && \
22-
../../tools/allfontsgen \
23-
--input="../../../core-fonts" \
24-
--allfonts-web="../../../sdkjs/common/AllFonts.js" \
25-
--allfonts="AllFonts.js" \
26-
--images="../../../sdkjs/common/Images" \
27-
--output-web="../../../fonts" \
28-
--selection="font_selection.bin"
17+
mkdir -p oo-extract
18+
curl -sLO https://github.com/ONLYOFFICE/DocumentServer/releases/download/v7.2.1/onlyoffice-documentserver.x86_64.rpm
19+
cd oo-extract && rpm2cpio ../onlyoffice-documentserver.x86_64.rpm | cpio -idm
20+
chmod -R 777 oo-extract/
21+
cp -r oo-extract/var/www/onlyoffice/documentserver 3rdparty/onlyoffice
22+
cp oo-extract/usr/lib64/* 3rdparty/onlyoffice/documentserver/server/FileConverter/bin/
23+
cp oo-extract/usr/lib64/* 3rdparty/onlyoffice/documentserver/server/tools/
24+
rm -rf oo-extract
25+
rm -f onlyoffice-documentserver.x86_64.rpm
26+
rm -rf 3rdparty/onlyoffice/documentserver/server/{Common,DocService}
27+
cd 3rdparty/onlyoffice/documentserver/server/tools && \
28+
./allfontsgen \
29+
--input="../../core-fonts" \
30+
--allfonts-web="../../sdkjs/common/AllFonts.js" \
31+
--allfonts="../FileConverter/bin/AllFonts.js" \
32+
--images="../../sdkjs/common/Images" \
33+
--output-web="../../fonts" \
34+
--selection="../FileConverter/bin/font_selection.bin"
2935
sed -i 's/if(yb===d\[a\].ka)/if(d[a]\&\&yb===d[a].ka)/' 3rdparty/onlyoffice/documentserver/sdkjs/*/sdk-all.js
3036

3137
version:

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ We'd like to also support ARM devices like the Raspberry Pi in the future.
1515
The community documentserver will automatically configure itself if no other document server is configured in the onlyoffice settings ("Document Editing Service address" is empty).
1616
All other "Server settings" should be left empty.
1717

18+
If autoconfiguration fails for any reason, you may manually enter the url. Log in as the admin and go to Settings > ONLYOFFICE. For the ONLYOFFICE Docs address, enter the value in the format of `https://<nextcloud_server>/apps/documentserver_community/`.
19+
1820
## Adding fonts
1921

2022
You can add custom fonts to the document server using the following occ commands
@@ -42,7 +44,7 @@ Specific commands and paths will differ based on your specific setup.
4244

4345
## Setup from git
4446

45-
When installing from git `make` and `docker` are required.
47+
When installing from git `make`, `curl`, `rpm2cpio`, and `cpio` are required.
4648

4749
- clone the repo into the Nextcloud app directory
4850
- run `make` in the app folder to download the 3rdparty components

appinfo/info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The community document server will automatically be configured if no other docum
1414
1515
Additionally, the community document server only supports running on x86-64 Linux servers.]]>
1616
</description>
17-
<version>0.1.12</version>
17+
<version>0.1.13</version>
1818
<licence>agpl</licence>
1919
<author>Robin Appelman</author>
2020
<namespace>DocumentServer</namespace>
@@ -31,7 +31,7 @@ Additionally, the community document server only supports running on x86-64 Linu
3131
<screenshot>https://raw.githubusercontent.com/nextcloud/documentserver_community/master/screenshots/main.png</screenshot>
3232
<screenshot>https://raw.githubusercontent.com/nextcloud/documentserver_community/master/screenshots/new.png</screenshot>
3333
<dependencies>
34-
<nextcloud min-version="21" max-version="23"/>
34+
<nextcloud min-version="21" max-version="25"/>
3535
</dependencies>
3636

3737
<background-jobs>

lib/OnlyOffice/WebVersion.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525

2626
class WebVersion {
2727
public function getWebUIVersion(): string {
28-
return '6.4.2';
28+
return '7.2.1';
2929
}
3030
}

0 commit comments

Comments
 (0)