Wrapper full setup and build

Dependencies

1
2
3
sudo apt update -y
sudo apt upgrade -y
sudo apt install clang wget git unzip build-essential golang pkg-config zlib1g-dev

Wrapper (Terminal 1)

  1. Compile MP4Box:
    cd ~
    git clone --depth 1 https://github.com/gpac/gpac.git && cd gpac && ./configure --static-bin && make -j4 && sudo make install && cd ~
    
  2. Download and extract the NDK needed to build the wrapper.
    wget https://dl.google.com/android/repository/android-ndk-r23b-linux.zip && unzip android-ndk-r23b-linux.zip -d ~
    
  3. Clone the repos and build.
    git clone https://github.com/zhaarey/wrapper
    cd wrapper && mkdir build && cd build && cmake .. && make -j4 && cd ..
    
  4. Login into wrapper and run the wrapper as root.
    sudo ./wrapper -M 20020 -L email:password
    

The wrapper needs to be run in the background.
(At the time of writing, the agent's m3u8 retrieving functionality is disabled because of instability. Specifying the m3u8 port is mandatory to avoid any errors. 1, 2)

Downloader (Terminal 2)

1
2
3
4
cd ~
git clone https://github.com/zhaarey/apple-music-downloader downloader
cd ~/downloader
go build

Original guide

Further information

Edit Report
Pub: 20 May 2025 22:52 UTC
Edit: 20 May 2025 22:54 UTC