Skip to content

Commit 1d6a3c6

Browse files
committed
🔧 Fix Parrot OS build issues
FIXES: - Add --break-system-packages flag for externally-managed pip - Auto-create api_config.json if missing - Use pip3 fallback for compatibility - Handle missing config file gracefully Now works on Parrot OS, Kali, Debian without errors!
1 parent 300ab55 commit 1d6a3c6

1 file changed

Lines changed: 24 additions & 3 deletions

File tree

BUILD_APPS.sh

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,33 @@ fi
1818
echo "✅ Python: $(python3 --version)"
1919
echo ""
2020

21-
echo "📦 Installing dependencies..."
22-
python3 -m pip install --upgrade pip -q
23-
python3 -m pip install pyinstaller ecdsa mnemonic pycryptodome requests base58 colorama -q
21+
echo "📦 Installing dependencies (with --break-system-packages for Parrot/Debian)..."
22+
python3 -m pip install --upgrade pip --break-system-packages -q 2>/dev/null || pip3 install --upgrade pip -q
23+
python3 -m pip install pyinstaller ecdsa mnemonic pycryptodome requests base58 colorama --break-system-packages -q 2>/dev/null || pip3 install pyinstaller ecdsa mnemonic pycryptodome requests base58 colorama -q
2424
echo "✅ Installed"
2525
echo ""
2626

27+
# Create api_config.json if missing
28+
if [ ! -f "api_config.json" ]; then
29+
echo "📝 Creating api_config.json..."
30+
cat > api_config.json << 'EOF'
31+
{
32+
"etherscan_api_key": "",
33+
"bscscan_api_key": "",
34+
"polygonscan_api_key": "",
35+
"ftmscan_api_key": "",
36+
"arbiscan_api_key": "",
37+
"optimism_api_key": "",
38+
"snowtrace_api_key": "",
39+
"hecoinfo_api_key": "",
40+
"moonscan_api_key": "",
41+
"cronoscan_api_key": ""
42+
}
43+
EOF
44+
echo "✅ Created api_config.json"
45+
fi
46+
echo ""
47+
2748
echo "🧹 Cleaning..."
2849
rm -rf build dist *.spec
2950
echo "✅ Cleaned"

0 commit comments

Comments
 (0)