mirror of
https://github.com/DeBrosOfficial/network.git
synced 2025-12-12 22:58:49 +00:00
fix: update supported OS versions and improve binary copy command
- Added Ubuntu 25.04 to the list of supported operating systems in the setup command. - Modified the binary copy command to use a shell command for improved compatibility and functionality.
This commit is contained in:
parent
ddebb03aa6
commit
879ba1f2e6
2
Makefile
2
Makefile
@ -21,7 +21,7 @@ test-e2e:
|
||||
|
||||
.PHONY: build clean test run-node run-node2 run-node3 run-example deps tidy fmt vet lint clear-ports
|
||||
|
||||
VERSION := 0.52.7
|
||||
VERSION := 0.52.8
|
||||
COMMIT ?= $(shell git rev-parse --short HEAD 2>/dev/null || echo unknown)
|
||||
DATE ?= $(shell date -u +%Y-%m-%dT%H:%M:%SZ)
|
||||
LDFLAGS := -X 'main.version=$(VERSION)' -X 'main.commit=$(COMMIT)' -X 'main.date=$(DATE)'
|
||||
|
||||
@ -41,7 +41,7 @@ func HandleSetupCommand(args []string) {
|
||||
|
||||
if !isSupportedOS(osInfo) {
|
||||
fmt.Fprintf(os.Stderr, "⚠️ Unsupported OS: %s\n", osInfo)
|
||||
fmt.Fprintf(os.Stderr, " Supported: Ubuntu 22.04/24.04, Debian 12\n")
|
||||
fmt.Fprintf(os.Stderr, " Supported: Ubuntu 22.04/24.04/25.04, Debian 12\n")
|
||||
fmt.Printf("\nContinue anyway? (yes/no): ")
|
||||
if !promptYesNo() {
|
||||
fmt.Println("Setup cancelled.")
|
||||
@ -138,6 +138,7 @@ func isSupportedOS(osInfo string) bool {
|
||||
supported := []string{
|
||||
"ubuntu 22.04",
|
||||
"ubuntu 24.04",
|
||||
"ubuntu 25.04",
|
||||
"debian 12",
|
||||
}
|
||||
for _, s := range supported {
|
||||
@ -392,7 +393,7 @@ func cloneAndBuild() {
|
||||
}
|
||||
|
||||
// Copy binaries
|
||||
exec.Command("cp", "-r", "/home/debros/src/bin/", "/home/debros/bin/").Run()
|
||||
exec.Command("sh", "-c", "cp -r /home/debros/src/bin/* /home/debros/bin/").Run()
|
||||
exec.Command("chown", "-R", "debros:debros", "/home/debros/bin").Run()
|
||||
exec.Command("chmod", "-R", "755", "/home/debros/bin").Run()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user