mirror of
https://github.com/luxfi/cli.git
synced 2026-10-30 17:01:20 +00:00
28 lines
578 B
Go
28 lines
578 B
Go
// Copyright (C) 2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package binutils
|
|
|
|
import (
|
|
"github.com/luxfi/cli/v2/pkg/application"
|
|
"github.com/luxfi/cli/v2/pkg/constants"
|
|
)
|
|
|
|
func SetupEVM(app *application.Lux, evmVersion string) (string, error) {
|
|
binDir := app.GetEVMBinDir()
|
|
|
|
installer := NewInstaller()
|
|
downloader := NewEVMDownloader()
|
|
binPath, err := InstallBinary(
|
|
app,
|
|
evmVersion,
|
|
binDir,
|
|
binDir,
|
|
evmBinPrefix,
|
|
constants.LuxOrg,
|
|
constants.EVMRepoName,
|
|
downloader,
|
|
installer,
|
|
)
|
|
return binPath, err
|
|
} |