Skip to content

Commit

Permalink
feat: update scrypto install scripts for v1.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
azizi-a committed Nov 29, 2024
1 parent 5059489 commit de518d6
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions scrypto-install-scripts/install-scrypto-debian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ install_rust() {
log "INFO" "Installing Rust..."

# Download and install Rust with specific toolchain
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=1.77.2 -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=1.81.0 -y

if [ $? -eq 0 ]; then
log "SUCCESS" "Rust installed successfully"
Expand Down Expand Up @@ -110,7 +110,7 @@ add_wasm_target() {
install_radix_tools() {
log "INFO" "Installing Radix Engine Simulator and CLI tools..."

cargo install --force radix-clis@1.2.0
cargo install --force radix-clis@1.3.0

if [ $? -eq 0 ]; then
log "SUCCESS" "Radix tools installed successfully"
Expand Down
8 changes: 4 additions & 4 deletions scrypto-install-scripts/install-scrypto-macos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ fi

# Add LLVM to PATH
echo -e "\n${BLUE}Configuring LLVM in $SHELL_CONFIG...${NC}"
if ! grep -q "$(brew --prefix llvm@17)/bin" "$SHELL_CONFIG"; then
echo 'PATH="$(brew --prefix llvm@17)/bin:$PATH"' >> "$SHELL_CONFIG"
if ! grep -q "$(brew --prefix llvm@18)/bin" "$SHELL_CONFIG"; then
echo 'PATH="$(brew --prefix llvm@18)/bin:$PATH"' >> "$SHELL_CONFIG"
fi
check_status "LLVM path configuration"

# Install Rust
echo -e "\n${BLUE}Installing Rust...${NC}"
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=1.77.2 -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain=1.81.0 -y
check_status "Rust installation"

# Source cargo environment
Expand All @@ -66,7 +66,7 @@ check_status "WebAssembly target installation"

# Install Radix Engine Simulator and CLI tools
echo -e "\n${BLUE}Installing Radix Engine Simulator and CLI tools...${NC}"
cargo install --force radix-clis@1.2.0
cargo install --force radix-clis@1.3.0
check_status "Radix tools installation"

echo -e "\n${GREEN}Installation complete! Please restart your terminal or run:${NC}"
Expand Down
11 changes: 6 additions & 5 deletions scrypto-install-scripts/install-scrypto-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if (!(Test-Path $vsInstallerPath)) {
}

# 3. Install LLVM
$llvmVersion = "17.0.6"
$llvmVersion = "18.1.8"
Install-IfNotPresent "LLVM" "clang" {
Write-ColorOutput Cyan "Downloading LLVM..."

Expand All @@ -104,25 +104,26 @@ Install-IfNotPresent "LLVM" "clang" {
}

# 4. Install Rust
$rustVersion = "1.81.0"
Install-IfNotPresent "Rust" "rustc" {
Write-ColorOutput Cyan "Downloading and installing Rust..."
$rustupInit = "$env:TEMP\rustup-init.exe"
Start-BitsTransfer -Source "https://win.rustup.rs" -Destination $rustupInit
Start-Process -Wait -FilePath $rustupInit -ArgumentList "-y", "--default-toolchain", "1.77.2"
Start-Process -Wait -FilePath $rustupInit -ArgumentList "-y", "--default-toolchain", $rustVersion
Remove-Item $rustupInit
}

# 5. Set Rust default version
Write-ColorOutput Cyan "Setting Rust default version to 1.77.2..."
rustup default 1.77.2
Write-ColorOutput Cyan "Setting Rust default version to $rustVersion..."
rustup default $rustVersion

# 6. Add WebAssembly target
Write-ColorOutput Cyan "Adding WebAssembly target..."
rustup target add wasm32-unknown-unknown

# 7. Install Radix Engine Simulator and CLI tools
Write-ColorOutput Cyan "Installing Radix Engine Simulator and CLI tools..."
cargo install --force radix-clis@1.2.0
cargo install --force radix-clis@1.3.0
Refresh-EnvironmentVariables

# Final success message
Expand Down

0 comments on commit de518d6

Please sign in to comment.