This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Building the daemon
You don't need to make any changes to compile the daemon for Apple Silicon. If your
openssl
is installed using Homebrew, you might need to export some variables before running./configure
andmake
.Universal
Build or obtain both an x86_64 (Intel) and an arm64 (Apple Silicon) variant of the
nzbget
daemon. Uselipo
to combine both binaries into a FAT binary.Building the tools
Thankfully, both
7za
andunrar
are ready to build for Apple Silicon as well.You could grab
7za
from Homebrew by installing the cask and extracting the binary:You'll probably have to build
unrar
yourself.Universal
Perform the same steps found above in the daemon's Universal section.
Building the wrapper
This is a little tricky. I believe the maintainers use a wrapper build script that's not in this repo. They'll have to make sure that the daemon and tools binaries they include are universal binaries (as shown above).
If you want to build it yourself:
tools
folder underosx/Resources
.tools
, paste in the Apple Silicon / universal binary of7za
.tools
, paste incacert.pem
. (Can be found in an existing release of NZBGet.app)tools
, paste in the Apple Silicon / universal binary ofunrar
.daemon
folder underosx/Resources
.usr
folder underosx/Resources/daemon
.local
folder underosx/Resources/daemon/usr
.bin
folder underosx/Resources/daemon/usr/local
.bin
, create a symbolic link called7za
to../../../../tools/7za
.bin
, create a symbolic link called7zr
to../../../../tools/7za
.bin
, create a symbolic link calledcacert.pem
to../../../../tools/cacert.pem
.bin
, create a symbolic link calledunrar
to../../../../tools/unrar
.bin
, paste in the Apple Silicon / universal binary of thenzbget
daemon.share
folder underosx/Resources/daemon/usr/local
.nzbget
folder underosx/Resources/daemon/usr/local/share
.share
, paste inscripts
. (Can be found in the root of the repo)share
, paste inwebui
. (Can be found in the root of the repo)share
, paste innzbget.conf
or your own. (Can be found in the root of the repo)NZBGet.xcodeproj
inosx/
with Xcode.Product
➔Show Build Folder in Finder
menubar command.NZBGet.app
you just built and place it in yourApplications
folder.sudo codesign --force --deep --sign - /Applications/NZBGet.app
Universal wrapper binary built with Xcode:
Native daemon and wrapper app running on an M1 Mac:
Note from Apple's Building a Universal macOS Binary article: