This interactive Bash script automates building AdventureCoin's daemon and Qt wallet on Ubuntu-based systems and macOS. It includes full support for advanced packaging, launcher creation, and Berkeley DB patching. Perfect for developers and users who want to build or distribute AdventureCoin with minimal effort.
🛠️ Features ✅ Interactive Menu – Choose between:
- Daemon-only build
- Qt Wallet-only build
- Full build (Daemon + Qt Wallet)
✅ Optional Steps (Ubuntu only, toggleable):
- Strip compiled binaries for smaller size
- Create
.tar.gz
package - Create
.deb
installer - Create
.desktop
launcher shortcut - Generate full desktop-integrated Qt Wallet
.deb
, including multi-size icons
✅ macOS Support:
- Native
.app
bundle generation - Signed
.dmg
disk image creation - Auto-patches deprecated Boost and Qt methods
- Installs Protobuf 3.6.1 locally for compatibility
- Works on Apple Silicon and Intel Macs
✅ Automatic Berkeley DB 4.8 Setup:
- Downloads, configures, and compiles Berkeley DB 4.8
- Includes a patch to support newer GCC/Clang versions (
__atomic_compare_exchange
fix)
✅ Source Handling:
- Clones the latest AdventureCoin repo (or updates if already cloned)
- Fully automates autogen and configure steps
✅ Qt Wallet Launcher Integration (Ubuntu Only):
- Downloads a PNG icon and auto-resizes it to standard resolutions (16x16 to 512x512)
- Embeds icon and
.desktop
file into a proper.deb
package for desktop launchers
After running, all binaries and generated packages are located in:
compiled_wallets/ # Ubuntu
compiled_wallets_macos/ # macOS
Possible files include:
adventurecoind
,adventurecoin-cli
,adventurecoin-tx
,adventurecoin-qt
adventurecoin_wallet.tar.gz
(if selected)adventurecoin_wallet.deb
(CLI+Daemon wallet)adventurecoin-qt-launcher.deb
(Full desktop.deb
for Qt wallet)AdventureCoin-Qt.dmg
(Full macOS drag-and-drop installer)AdventureCoin-Qt.app
(Native macOS app bundle)
Script auto-installs all required dependencies, including:
- Qt5 libraries
- Berkeley DB 4.8
- Boost
- Protobuf
- libevent, libssl, miniupnpc, etc.
- Xcode + Command Line Tools
- Homebrew (for dependency management)
- Supports both Intel and Apple Silicon chips
- Installs Protobuf 3.6.1 locally to avoid incompatibility
chmod +x build_adventurecoin_ubuntu.sh
./build_adventurecoin_ubuntu.sh
chmod +x build_adventurecoin_mac.sh
./build_adventurecoin_mac.sh
Just follow the prompts to customize your build. The script handles everything else!