Skip to content

Instantly share code, notes, and snippets.

@R0GERIUS
R0GERIUS / build_qbt_dmg_qt5.sh
Last active June 10, 2022 12:11
script to build qBittorrent with Qt5 on macOS, no Homebrew required!
#!/bin/bash
# standalone script to build qBittorent for macOS (including Apple Silicon based Macs) by Kolcha
#
# only Xcode must be installed (Xcode 12 is required to produce arm64 binaries)
# all required dependencies and tools are automatically downloaded and used only from script's working directory
# (can be specified), nothing is installed into the system
# working directory is removed on completion if it was not specified
#
# by default script produces binaries for the architecture it was launched on, but cross-compilation is also supported
# in both directions, i.e. x86_64 -> arm64 and arm64 -> x86_64
@R0GERIUS
R0GERIUS / build_qbt_dmg_qt6.sh
Last active January 12, 2022 23:26
script to build qBittorrent master branch on macOS with Qt6, no Homebrew required!
#!/bin/bash
# standalone script to build qBittorent for macOS (including Apple Silicon based Macs)
#
# only Xcode must be installed (Xcode 12 is required to produce arm64 binaries)
# all required dependencies and tools are automatically downloaded and used only from script's working directory
# (can be specified), nothing is installed into the system
# working directory is removed on completion if it was not specified
#
# by default script produces binaries for the architecture it was launched on, but cross-compilation is also supported
# in both directions, i.e. x86_64 -> arm64 and arm64 -> x86_64
@R0GERIUS
R0GERIUS / build_qbt_dmg.sh
Last active March 14, 2022 17:12 — forked from Kolcha/build_qbt_dmg.sh
script to build qBittorrent master branch on macOS, no Homebrew required!
#!/bin/zsh
# standalone script to build qBittorent for macOS (including Apple Silicon based Macs)
#
# only Xcode must be installed (Xcode 12 is required to produce arm64 binaries)
# all required dependencies and tools are automatically downloaded and used only from script's working directory
# (can be specified), nothing is installed into the system
# working directory is removed on completion if it was not specified
#
# by default script produces binaries for the architecture it was launched on, but cross-compilation is also supported
# in both directions, i.e. x86_64 -> arm64 and arm64 -> x86_64
@R0GERIUS
R0GERIUS / qt5_xcode13.patch
Created November 8, 2021 22:40
Qt5 patch for XCode 13 compilation
--- a/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
+++ b/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h
@@ -43,6 +43,8 @@
#include <qpa/qplatformgraphicsbuffer.h>
#include <private/qcore_mac_p.h>
+#include <CoreGraphics/CGColorSpace.h>
+
QT_BEGIN_NAMESPACE