|
| 1 | +Here's your updated `README.md` with full macOS support info added, while preserving your original structure and tone: |
| 2 | + |
| 3 | +--- |
| 4 | + |
1 | 5 | ## 🚀 AdventureCoin Build Scripts
|
2 |
| -This interactive Bash script automates building AdventureCoin's daemon and Qt wallet on Ubuntu-based systems. 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.# advc-build-scripts |
| 6 | + |
| 7 | +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. |
| 8 | + |
| 9 | +# advc-build-scripts |
3 | 10 |
|
4 | 11 | 🛠️ Features
|
5 | 12 | ✅ Interactive Menu – Choose between:
|
6 | 13 |
|
7 | 14 | * Daemon-only build
|
8 |
| - |
9 | 15 | * Qt Wallet-only build
|
10 |
| - |
11 | 16 | * Full build (Daemon + Qt Wallet)
|
12 | 17 |
|
13 |
| -✅ Optional Steps (ubuntu) (toggleable): |
| 18 | +✅ Optional Steps (Ubuntu only, toggleable): |
14 | 19 |
|
15 | 20 | * Strip compiled binaries for smaller size
|
16 |
| - |
17 | 21 | * Create `.tar.gz` package
|
18 |
| - |
19 | 22 | * Create `.deb` installer
|
20 |
| - |
21 | 23 | * Create `.desktop` launcher shortcut
|
22 |
| - |
23 | 24 | * Generate full desktop-integrated Qt Wallet `.deb`, including multi-size icons
|
24 | 25 |
|
| 26 | +✅ macOS Support: |
| 27 | + |
| 28 | +* Native `.app` bundle generation |
| 29 | +* Signed `.dmg` disk image creation |
| 30 | +* Auto-patches deprecated Boost and Qt methods |
| 31 | +* Installs Protobuf 3.6.1 locally for compatibility |
| 32 | +* Works on Apple Silicon and Intel Macs |
| 33 | + |
25 | 34 | ✅ Automatic Berkeley DB 4.8 Setup:
|
26 | 35 |
|
27 | 36 | * Downloads, configures, and compiles Berkeley DB 4.8
|
28 |
| - |
29 |
| -* Includes a patch to support newer GCC versions (__atomic_compare_exchange fix) |
| 37 | +* Includes a patch to support newer GCC/Clang versions (`__atomic_compare_exchange` fix) |
30 | 38 |
|
31 | 39 | ✅ Source Handling:
|
32 | 40 |
|
33 | 41 | * Clones the latest AdventureCoin repo (or updates if already cloned)
|
34 |
| - |
35 | 42 | * Fully automates autogen and configure steps
|
36 | 43 |
|
37 |
| -✅ Qt Wallet Launcher Integration (Optional): |
| 44 | +✅ Qt Wallet Launcher Integration (Ubuntu Only): |
38 | 45 |
|
39 | 46 | * Downloads a PNG icon and auto-resizes it to standard resolutions (16x16 to 512x512)
|
40 |
| - |
41 | 47 | * Embeds icon and `.desktop` file into a proper `.deb` package for desktop launchers
|
42 | 48 |
|
| 49 | +--- |
| 50 | + |
43 | 51 | ## 📦 Output
|
| 52 | + |
44 | 53 | After running, all binaries and generated packages are located in:
|
45 | 54 |
|
| 55 | +```bash |
| 56 | +compiled_wallets/ # Ubuntu |
| 57 | +compiled_wallets_macos/ # macOS |
46 | 58 | ```
|
47 |
| -compiled_wallets/ |
48 |
| -``` |
| 59 | + |
49 | 60 | > Possible files include:
|
50 | 61 |
|
51 | 62 | * `adventurecoind`, `adventurecoin-cli`, `adventurecoin-tx`, `adventurecoin-qt`
|
52 |
| - |
53 | 63 | * `adventurecoin_wallet.tar.gz` (if selected)
|
54 |
| - |
55 | 64 | * `adventurecoin_wallet.deb` (CLI+Daemon wallet)
|
56 |
| - |
57 | 65 | * `adventurecoin-qt-launcher.deb` (Full desktop `.deb` for Qt wallet)
|
| 66 | +* `AdventureCoin-Qt.dmg` (Full macOS drag-and-drop installer) |
| 67 | +* `AdventureCoin-Qt.app` (Native macOS app bundle) |
| 68 | + |
| 69 | +--- |
58 | 70 |
|
59 | 71 | ## 🔧 Requirements
|
60 |
| -Ubuntu 20.04, 22.04 or 24.04 recommended. Script auto-installs all required dependencies including: |
61 | 72 |
|
62 |
| -* Qt5 libraries |
| 73 | +### ✅ Ubuntu (20.04, 22.04, 24.04 recommended) |
63 | 74 |
|
64 |
| -* Berkeley DB 4.8 |
| 75 | +Script auto-installs all required dependencies, including: |
65 | 76 |
|
| 77 | +* Qt5 libraries |
| 78 | +* Berkeley DB 4.8 |
66 | 79 | * Boost
|
67 |
| - |
68 | 80 | * Protobuf
|
69 |
| - |
70 | 81 | * libevent, libssl, miniupnpc, etc.
|
71 | 82 |
|
| 83 | +### 🍏 macOS (12 Monterey and above) |
| 84 | + |
| 85 | +* Xcode + Command Line Tools |
| 86 | +* Homebrew (for dependency management) |
| 87 | +* Supports both Intel and Apple Silicon chips |
| 88 | +* Installs Protobuf 3.6.1 locally to avoid incompatibility |
| 89 | + |
| 90 | +--- |
| 91 | + |
72 | 92 | ## 💡 Usage
|
| 93 | + |
| 94 | +### Ubuntu: |
| 95 | + |
| 96 | +```bash |
| 97 | +chmod +x build_adventurecoin_ubuntu.sh |
| 98 | +./build_adventurecoin_ubuntu.sh |
| 99 | +``` |
| 100 | + |
| 101 | +### macOS: |
| 102 | + |
73 | 103 | ```bash
|
74 |
| -chmod +x build-adventurecoin.sh |
75 |
| -./build-adventurecoin.sh |
| 104 | +chmod +x build_adventurecoin_mac.sh |
| 105 | +./build_adventurecoin_mac.sh |
76 | 106 | ```
|
| 107 | + |
77 | 108 | Just follow the prompts to customize your build. The script handles everything else!
|
78 | 109 |
|
| 110 | +--- |
| 111 | + |
| 112 | +Let me know if you'd like me to auto-link the GitHub releases or add screenshots of the `.dmg` or `.deb` in action. |
0 commit comments