1
0
Fork 0
Commit Graph

14876 Commits

Author SHA1 Message Date
Kevin Ottens 068ad89d8d
Merge pull request #2471 from nextcloud/backport/2470/stable-3.0
[stable-3.0] Force tooltip wrap mode because it's not enabled in Qt 5.12...
2020-09-24 14:51:48 +02:00
Kevin Ottens df6abcb68d Force tooltip wrap mode because it's not enabled in Qt 5.12...
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-24 12:50:29 +00:00
Nextcloud bot 17b991bda3
[tx-robot] updated from transifex 2020-09-24 03:37:43 +00:00
Michael Schuster a909ffce28
Merge pull request #2465 from nextcloud/backport/2441/stable-3.0
[stable-3.0] Allow server URL to be pre-defined without enforcing it
2020-09-23 16:37:34 +02:00
Michael Schuster 25c8077378 Allow server URL to be pre-defined without enforcing it to be used unmodified
APPLICATION_SERVER_URL can be either empty or be specified. This commit adds the new CMake option APPLICATION_SERVER_URL_ENFORCE to decide whether to enforce the
URL's unmodified use (like before, default: ON) or to allow modification by the user (new).

By default APPLICATION_SERVER_URL_ENFORCE is set to ON, to no break with the previous implementation's expectations.

If APPLICATION_SERVER_URL is empty, APPLICATION_SERVER_URL_ENFORCE will be ignored by the Account Wizard.

The previous behaviour confused me a bit with branded builds. When the URL was (usually) specified but not forced, it was simply discarded, forcing the user to
manually supply it.

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-23 14:29:08 +00:00
Kevin Ottens 75f5cfff0b
Merge pull request #2463 from nextcloud/backport/2409/stable-3.0
[stable-3.0] Use native text rendering for qml windows
2020-09-23 14:39:29 +02:00
Jeremy Plsek 991f84844e
Use native text rendering for qml windows
Signed-off-by: Jeremy Plsek <jeremyplsek@gmail.com>
2020-09-23 14:12:14 +02:00
Nextcloud bot 90f2b01659
[tx-robot] updated from transifex 2020-09-23 03:36:40 +00:00
Nextcloud bot 7a9ed6cc0d
[tx-robot] updated from transifex 2020-09-22 03:36:37 +00:00
Michael Schuster 3e7d09b520
Merge pull request #2458 from nextcloud/backport/2369/stable-3.0
[stable-3.0] Windows: MSI support & Win32 migration tools
2020-09-21 17:45:18 +02:00
Michael Schuster 24da469d72 Windows: Win32 migration tools code review
Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-21 15:36:33 +00:00
Michael Schuster 71e86ad27c Windows MSI: Add MSI scripts and UI resources
Uses CMake to generate and install all required files in the "msi/" directory.

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-21 15:36:33 +00:00
Michael Schuster a5500297f7 Windows: Add Win32 stand-alone migration tool NCNavRemove
Removes all Explorer Navigation Pane entries for a given ApplicationName, specified in NavRemove.ini in the working directory.

Also compiles a DLL with the same behaviour that exports:
- RemoveNavigationPaneEntries

Both tool variants are Mutex-protected.

Statically linked, optimized for binary size, no Qt dependencies.

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-21 15:36:32 +00:00
Michael Schuster ea2d1be222 Windows MSI: Add helper DLL and shared migration tools code
The helper DLL will be utilized by Windows Installer with Custom Actions defined in the NCMsiHelper.wxs WiX fragment.

Exports:
- ExecNsisUninstaller
- RemoveNavigationPaneEntries

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-21 15:36:32 +00:00
Michael Schuster 1537577ade Windows MSI: Let CMake install Shell Extensions WiX fragment to "msi/"
Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-21 15:36:32 +00:00
Michael Schuster 924ed77563 Windows MSI: Add Upgrade Code and migration tool build options to NEXTCLOUD.cmake
The Upgrade Code is a GUID (specified without brackets) for the MSI package to allow Windows Installer identify existing installations.

New build options (default: OFF):
- BUILD_WIN_MSI: Build all MSI scripts and a required helper DLL (to uninstall NSIS legacy installations and remove Explorer Navigation Pane entries)
- BUILD_WIN_TOOLS: Build additional migration tools (currently NCNavRemove, a stand-alone tool for Explorer entries removal)

The helper DLL and migration tools are set to be statically linked and optimized for binary size.

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-21 15:36:32 +00:00
Kevin Ottens c44c8c8876
Merge pull request #2456 from nextcloud/backport/2439/stable-3.0
[stable-3.0] Fix missing subdirectory discovery on move operations in macOS
2020-09-21 16:05:59 +02:00
Dominique Fuchs c3b0e98e3e Fix missing subdirectory discovery on move operations in macOS.
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>

Add qAsConst to avoid detaching

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>

Changed callchain to find and return possibly coalesced paths

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>

Removed another qAsConst remnant, more func const-correctness.

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
2020-09-21 13:52:55 +00:00
Kevin Ottens 5ac3b98dfb
Merge pull request #2455 from nextcloud/backport/2431/stable-3.0
[stable-3.0] Remove "This includes" due to tooltip order
2020-09-21 15:50:38 +02:00
Jeremy Plsek c8ca587130 Remove "This includes" due to tooltip order
Signed-off-by: Jeremy Plsek <jeremyplsek@gmail.com>
2020-09-21 13:41:24 +00:00
Nextcloud bot f9ae321353
[tx-robot] updated from transifex 2020-09-21 03:31:12 +00:00
Nextcloud bot b7f7366d3a
[tx-robot] updated from transifex 2020-09-20 03:30:53 +00:00
Nextcloud bot 67d815a4c5
[tx-robot] updated from transifex 2020-09-19 03:33:17 +00:00
Michael Schuster 2170d72aec
Merge pull request #2448 from nextcloud/backport/2437/stable-3.0
[stable-3.0] If there's no description just say nothing
2020-09-18 22:03:27 +02:00
Kevin Ottens bd3e246ce7 If there's no description just say nothing
Otherwise we get lots of "No description available" lines in the
activity list which is basically noise. Also trains the user to ignore
the secondary line.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-18 18:42:30 +00:00
Camila San 2da9edecbe Entitlement to sign the QtWebEngineProcess with an exception.
Fix for #1793: The problem seems to be related enabling hardened runtime.
This exception allows the webview to load.

Signed-off-by: Camila San <hello@camila.codes>
2020-09-18 15:02:54 +02:00
Nextcloud bot c287b668d3
[tx-robot] updated from transifex 2020-09-18 03:29:55 +00:00
Nextcloud bot 568b738fa9
[tx-robot] updated from transifex 2020-09-17 04:11:58 +00:00
Michael Schuster 5125724e87
[stable-3.0] Add missing Polish.nsh from PR #2434 Windows: Fix NSIS language encoding (use UTF-8)
Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-16 16:12:18 +02:00
Kevin Ottens b0f67d2e0d
Merge pull request #2436 from nextcloud/backport/2435/stable-3.0
[stable-3.0] Fix incomplete journal upgrade from 2.x to 3.x
2020-09-16 14:23:10 +02:00
Dominique Fuchs 0fe6f075f1 Do not break out of outer loop when upgrading folders, continue instead
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>

Remove awkward debug line a.k.a. whoops

Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
2020-09-16 11:22:25 +00:00
Kevin Ottens c3b6d3f04a
Merge pull request #2434 from nextcloud/backport/2432/stable-3.0
[stable-3.0] Windows: Fix NSIS language encoding (use UTF-8)
2020-09-16 09:31:23 +02:00
Michael Schuster ae57c1c752 Windows: Remove unused and outdated NSIS Transifex settings
The last translation update from Transifex was done in 2017, so the scripts and settings were never used for Nextcloud.

This commit removes the unused scripts and "Auto-generated" comments in the translation files.

Some files have been modified over time either way and MSI will replace NSIS soon.

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-16 07:14:10 +00:00
Michael Schuster e6975840a7 Windows: Fix NSIS language encoding (use UTF-8 instead of Win code pages)
The old conversion to specific code pages caused display errors (see issue #2393 for Russian).

Based on bin/l10n.sh, the files in this commit were converted to UTF-8 using iconv with the following parameters:

  iconv -f CP1252 -t UTF-8 -o German.nsh German.nsh
  iconv -f CP1252 -t UTF-8 -o Galician.nsh Galician.nsh
  iconv -f CP1253 -t UTF-8 -o Greek.nsh Greek.nsh
  iconv -f CP1250 -t UTF-8 -o Slovenian.nsh Slovenian.nsh
  iconv -f CP1257 -t UTF-8 -o Estonian.nsh Estonian.nsh
  iconv -f CP1252 -t UTF-8 -o Italian.nsh Italian.nsh
  iconv -f CP1252 -t UTF-8 -o PortugueseBR.nsh PortugueseBR.nsh
  iconv -f CP1252 -t UTF-8 -o Spanish.nsh Spanish.nsh
  iconv -f CP1252 -t UTF-8 -o Dutch.nsh Dutch.nsh
  iconv -f CP1252 -t UTF-8 -o Finnish.nsh Finnish.nsh
  iconv -f CP932 -t UTF-8 -o Japanese.nsh Japanese.nsh
  iconv -f CP1250 -t UTF-8 -o Slovak.nsh Slovak.nsh
  iconv -f CP1254 -t UTF-8 -o Turkish.nsh Turkish.nsh
  iconv -f CP1252 -t UTF-8 -o Norwegian.nsh Norwegian.nsh
  iconv -f CP852  -t UTF-8 -o Czech.nsh Czech.nsh

The installer script nextcloud.nsi in the client-building repo needs the following line (to be added on top):
  Unicode true

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-09-16 07:14:10 +00:00
Nextcloud bot f15c627c82
[tx-robot] updated from transifex 2020-09-16 03:27:00 +00:00
Kevin Ottens d0b19559d3
Merge pull request #2430 from nextcloud/backport/2351/stable-3.0
[stable-3.0] Fix clang tidy errors in csync tests
2020-09-15 16:18:30 +02:00
Kevin Ottens c9fe7fa735 Switch to newer CI image to build csync tests
This new image brings the cmocka dependency and thus will make the CI
build the csync tests which depend on it.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 14:03:44 +00:00
Kevin Ottens d6b057e7e8 Fix bugprone-narrowing-conversion errors in csync tests
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 14:03:44 +00:00
Kevin Ottens e8c92ec50f Fix modernize-use-nullptr errors in csync tests
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 14:03:44 +00:00
Kevin Ottens ce55a4678c Fix modernize-use-auto errors in csync tests
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 14:03:44 +00:00
Kevin Ottens e4004035fe Fix modernize-deprecated-headers errors in csync tests
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 14:03:44 +00:00
Kevin Ottens 6125aca847
Merge pull request #2429 from nextcloud/backport/2247/stable-3.0
[stable-3.0] Improve drone config
2020-09-15 16:02:39 +02:00
Kevin Ottens ddd1552047 Make sure wget looks for the certificates at the right place
Might happen because we got too many copies of OpenSSL around

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:01 +00:00
Kevin Ottens de38a1e309 Switch to Ninja for the clang build
Clang is generally slower to compile than GCC so use a faster Make for
that build variant. This also allows us to verify our CMake files don't
do anything Make specific.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:01 +00:00
Kevin Ottens 3afa836744 Parallelize the clang-tidy runs
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:01 +00:00
Kevin Ottens 66a19e533a Split cmake and compile into separate pipeline steps
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:01 +00:00
Kevin Ottens 00fa184507 Switch to actual commands inside of the steps
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:00 +00:00
Kevin Ottens 169bf7f032 Split the CI pipelines into proper steps
Will make it easier to navigate the logs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:00 +00:00
Kevin Ottens 771263aa25 Now make sure we're not picking up generated headers
This could happen (and started to happen more with clang-tidy 10) that
clang-tidy picked up errors in headers from the build directory. Now
that we moved the build directory out of source, we can simply filter
headers based on the pwd.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:00 +00:00
Kevin Ottens a6cab38ebd Move the build in a volume to be reused between steps
Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
2020-09-15 13:53:00 +00:00