Skip to content

Commit

Permalink
Merge branch 'master' into feature/proposeLocalDir
Browse files Browse the repository at this point in the history
  • Loading branch information
rwalke authored Jan 15, 2025
2 parents 3ec2977 + 889fba6 commit d8f9df6
Show file tree
Hide file tree
Showing 69 changed files with 1,290 additions and 727 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
cd doc
make html > build.log 2>&1
if grep WARNING build.log; then
grep WARNING build.log | awk '{
split($0, fields, ":");
sub("/__w/desktop/desktop/", "", fields[1]);
print "::warning file=" fields[1] ( length(fields[2]) ? ",line=" fields[2] : "" ) ",title=Documentation generation::" substr($0, index($0, fields[4]) + 1)
}'
exit 1
else
exit 0
Expand Down
32 changes: 23 additions & 9 deletions admin/osx/mac-crafter/Sources/Utils/Codesign.swift
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,31 @@ func codesignClientAppBundle(
// We need to strip these out manually.

let sparkleFrameworkPath = "\(frameworksPath)/Sparkle.framework"
if FileManager.default.fileExists(atPath: "\(sparkleFrameworkPath)/Resources/Autoupdate.app") {
print("Code-signing Sparkle autoupdater app (without entitlements)...")

try recursivelyCodesign(
path: "\(sparkleFrameworkPath)/Resources/Autoupdate.app",
if FileManager.default.fileExists(atPath: sparkleFrameworkPath) {
print("Code-signing Sparkle...")
try codesign(
identity: codeSignIdentity,
options: "--timestamp --force --verbose=4 --options runtime --deep"
path: "\(sparkleFrameworkPath)/Versions/B/XPCServices/Installer.xpc",
options: "-f -o runtime"
)
try codesign(
identity: codeSignIdentity,
path: "\(sparkleFrameworkPath)/Versions/B/XPCServices/Downloader.xpc",
options: "-f -o runtime --preserve-metadata=entitlements"
)
try codesign(
identity: codeSignIdentity,
path: "\(sparkleFrameworkPath)/Versions/B/Autoupdate",
options: "-f -o runtime"
)
try codesign(
identity: codeSignIdentity,
path: "\(sparkleFrameworkPath)/Versions/B/Updater.app",
options: "-f -o runtime"
)
try codesign(
identity: codeSignIdentity, path: sparkleFrameworkPath, options: "-f -o runtime"
)

print("Re-codesigning Sparkle library...")
try codesign(identity: codeSignIdentity, path: "\(sparkleFrameworkPath)/Sparkle")
} else {
print("Build does not have Sparkle, skipping.")
}
Expand Down
2 changes: 1 addition & 1 deletion admin/osx/mac-crafter/Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct Build: ParsableCommand {

@Option(name: [.long], help: "Sparkle download URL.")
var sparkleDownloadUrl =
"https://github.com/sparkle-project/Sparkle/releases/download/1.27.3/Sparkle-1.27.3.tar.xz"
"https://github.com/sparkle-project/Sparkle/releases/download/2.6.4/Sparkle-2.6.4.tar.xz"

@Option(name: [.long], help: "Git clone command; include options such as depth.")
var gitCloneCommand = "git clone --depth=1"
Expand Down
2 changes: 1 addition & 1 deletion doc/macosvfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ macOS Virtual Files

.. index:: macosvfs

macOS Vitual Files client
macOS Virtual Files client
============

Virtual file-based synchronisation for Nextcloud desktop users is now
Expand Down
1 change: 0 additions & 1 deletion resources.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<file>src/gui/EmojiPicker.qml</file>
<file>src/gui/UserStatusSelectorButton.qml</file>
<file>src/gui/PredefinedStatusButton.qml</file>
<file>src/gui/BasicComboBox.qml</file>
<file>src/gui/ErrorBox.qml</file>
<file>src/gui/filedetails/FileActivityView.qml</file>
<file>src/gui/filedetails/FileDetailsPage.qml</file>
Expand Down
99 changes: 0 additions & 99 deletions src/gui/BasicComboBox.qml

This file was deleted.

2 changes: 1 addition & 1 deletion src/gui/UserStatusSelector.qml
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ ColumnLayout {
wrapMode: Text.Wrap
}

BasicComboBox {
ComboBox {
id: clearComboBox

Layout.fillWidth: true
Expand Down
2 changes: 1 addition & 1 deletion src/gui/filedetails/ShareDetailsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ Page {

checkable: true
checked: root.passwordProtectEnabled
text: qsTr("Password protect")
text: qsTr("Password protection")
visible: root.shareSupportsPassword
enabled: visible &&
!root.waitingForPasswordProtectEnabledChange &&
Expand Down
1 change: 1 addition & 0 deletions src/gui/owncloudgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ void ownCloudGui::slotComputeOverallSyncStatus()
if (!Mac::FileProviderSettingsController::instance()->vfsEnabledForAccount(accountFpId)) {
continue;
}
allPaused = false;
const auto fileProvider = Mac::FileProvider::instance();

if (!fileProvider->xpc()->fileProviderExtReachable(accountFpId)) {
Expand Down
15 changes: 11 additions & 4 deletions src/gui/systray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,18 @@ void Systray::setSyncIsPaused(const bool syncIsPaused)

void Systray::positionWindowAtTray(QQuickWindow *window) const
{
if (!useNormalWindow()) {
window->setScreen(currentScreen());
const auto position = computeWindowPosition(window->width(), window->height());
window->setPosition(position);
if (useNormalWindow()) {
return;
}

// need to store the current window size before moving the window to another screen,
// otherwise it is being incorrectly resized by the OS or Qt when switching to a screen
// with a different DPI setting
const auto initialSize = window->size();
const auto position = computeWindowPosition(initialSize.width(), initialSize.height());
window->setPosition(position);
window->setScreen(currentScreen());
window->resize(initialSize);
}

void Systray::positionWindowAtScreenCenter(QQuickWindow *window) const
Expand Down
Loading

0 comments on commit d8f9df6

Please sign in to comment.