Skip to content

Instantly share code, notes, and snippets.

@Tokarak
Tokarak / build_qbt_dmg.sh
Last active June 30, 2024 17:59 — forked from Kolcha/build_qbt_dmg.sh
Script to build qBittorrent master branch with Qt6 on macOS, no Homebrew required!
#!/bin/bash
# TODO: rebuild dependencies each script run, like qbittorent itself. Currently, the only way to make the script rebuild the dependencies, each dependency's lib folder needs to be deleted. This however would bring a small overhead to each operation, since dependencies are unlikely to be modified.
# standalone script to build qBittorent for macOS (including Apple Silicon based Macs)
#
# Script peforms much better when it caches the process for future use - it is completely unrecommended to run this script in the default temporary folder. (That was only allowed because it is still preferable to the script potentially overwriting by accident in the current working directory.) To make use of the caching functionaly, it is recommended to store the script in its own empty directory. Call the script (from that directory):
# ./build_qbt_dmg.sh -w . -o .
# This will cause the script to _W_ork and _O_utput in the same directory - everything is nicely centralised.
# Default outdir is better: it pops the dmg