Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7008fae

Browse files
committed
install script
1 parentdbd3f44 commit7008fae

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

‎install.sh‎

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -363,31 +363,22 @@ install_nodejs() {
363363
log_success"Node.js and package managers installed"
364364
}
365365

366-
#InstallAutonomi CLI (ant)
367-
install_ant_cli() {
368-
log_step"InstallingAutonomi CLI (ant)..."
366+
#Check for existingAutonomi CLI (optional)
367+
check_ant_cli() {
368+
log_step"Checking forAutonomi CLI (optional)..."
369369

370370
if command_exists ant;then
371371
log_info"ant CLI is already installed. Version:$(ant --version2>/dev/null||echo'unknown')"
372+
ANT_AVAILABLE=true
372373
else
373-
log_info"Installing ant CLI via antup..."
374-
curl -sSf https://raw.githubusercontent.com/maidsafe/antup/main/install.sh| sh
375-
376-
# Add to PATH if not already there
377-
if [[":$PATH:"!=*":$HOME/.local/bin:"* ]];then
378-
echo'export PATH="$HOME/.local/bin:$PATH"'>>"$HOME/.bashrc"
379-
export PATH="$HOME/.local/bin:$PATH"
380-
fi
381-
382-
# Install the client
383-
if command_exists antup;then
384-
antup client
385-
else
386-
log_warning"antup installation may have failed. Will continue in public-only mode."
387-
fi
374+
log_info"Autonomi CLI not found - daemon will run in public-only mode"
375+
log_info"To enable full functionality later, install ant CLI with:"
376+
log_info" curl -sSf https://raw.githubusercontent.com/maidsafe/antup/main/install.sh | sh"
377+
log_info" antup client"
378+
ANT_AVAILABLE=false
388379
fi
389380

390-
log_success"Autonomi CLIinstallation completed"
381+
log_success"Autonomi CLIcheck completed"
391382
}
392383

393384
# Clone or update repository
@@ -474,19 +465,19 @@ setup_configuration() {
474465
check_wallet_setup() {
475466
log_step"Checking wallet setup..."
476467

477-
if command_exists ant;then
468+
if[["$ANT_AVAILABLE"=="true" ]]&&command_exists ant;then
478469
# Check if ant wallet exists
479470
if ant wallet balance&>/dev/null;then
480471
log_success"Autonomi wallet is configured and accessible"
481472
WALLET_CONFIGURED=true
482473
else
483-
log_warning"Autonomiwallet not configured or notaccessible"
474+
log_warning"AutonomiCLI found but wallet notconfigured"
484475
log_info"The daemon will run in public-only mode (can only download public data)"
485476
WALLET_CONFIGURED=false
486477
fi
487478
else
488-
log_warning"Autonomi CLInot available"
489-
log_info"The daemon will run inpublic-only mode (can only download public data)"
479+
log_info"NoAutonomi CLIfound - daemon will run in public-only mode"
480+
log_info"This allows downloadingpublic data without wallet setup"
490481
WALLET_CONFIGURED=false
491482
fi
492483
}
@@ -565,12 +556,13 @@ test_functionality() {
565556
fi
566557

567558
# Test public data fetch (this should work even without wallet)
568-
log_info"Testing public data fetch..."
559+
log_info"Testing public data fetch (this works without wallet)..."
569560
if mutant get -p a420224971527d61ce6ee21d850a07c243498c95808697e8fac23f461545656933016697d10b805c0fa26b50eb3532b2 /tmp/test_meme.jpg&>/dev/null;then
570-
log_success"Public data fetch test successful"
561+
log_success"Public data fetch test successful - MutAnt is working!"
571562
rm -f /tmp/test_meme.jpg
572563
else
573-
log_warning"Public data fetch test failed (this may be normal if network is unavailable)"
564+
log_info"Public data fetch test skipped (network may be unavailable)"
565+
log_info"This is normal and doesn't indicate a problem with the installation"
574566
fi
575567
}
576568

@@ -598,8 +590,8 @@ print_final_instructions() {
598590

599591
log_highlight"🔧 Command Line Interface:"
600592
echo" mutant --help # Show CLI help"
601-
echo" mutantls # List your stored keys"
602-
echo" mutantget -p <address> <file># Download public data"
593+
echo" mutantget -p <address> <file># Download public data (works without wallet)"
594+
echo" mutantls # List your stored keys (requires wallet)"
603595
echo""
604596

605597
log_highlight"🔍 Service Status:"
@@ -617,15 +609,21 @@ print_final_instructions() {
617609
if [["$WALLET_CONFIGURED"=="false" ]];then
618610
log_warning"⚠️ Wallet Configuration:"
619611
echo" Your daemon is running in PUBLIC-ONLY mode."
612+
echo" This allows downloading public data without any setup."
613+
echo""
620614
echo" To enable full functionality (upload/store data):"
621615
echo""
622-
echo" 1. Create a new wallet:"
616+
echo" 1. Install Autonomi CLI:"
617+
echo" curl -sSf https://raw.githubusercontent.com/maidsafe/antup/main/install.sh | sh"
618+
echo" antup client"
619+
echo""
620+
echo" 2. Create a new wallet:"
623621
echo" ant wallet create"
624622
echo""
625-
echo"2. Or import existing wallet:"
623+
echo"3. Or import existing wallet:"
626624
echo" ant wallet import YOUR_PRIVATE_KEY"
627625
echo""
628-
echo"3. Restart the daemon:"
626+
echo"4. Restart the daemon:"
629627
echo" pkill mutant-daemon"
630628
echo" mutant daemon start"
631629
echo""
@@ -726,9 +724,11 @@ main() {
726724
setup_ffmpeg_env
727725
install_rust
728726
install_nodejs
729-
install_ant_cli
730727
fi
731728

729+
# Always check for ant CLI (doesn't install, just checks)
730+
check_ant_cli
731+
732732
setup_repository
733733
build_rust_workspace
734734
setup_web_interface

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp