mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2026-09-06 05:24:36 +02:00
Compatible with launcher's action.config
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
"strconv"
|
||||
"syscall"
|
||||
"os/exec"
|
||||
"runtime"
|
||||
|
||||
"github.com/cuu/gogame/display"
|
||||
|
||||
@@ -260,6 +261,16 @@ func System(cmd string) string {
|
||||
return ret
|
||||
}
|
||||
|
||||
func ArmSystem(cmd string) string {
|
||||
|
||||
if strings.Contains(runtime.GOARCH,"arm") == true {
|
||||
return System(cmd)
|
||||
}else {
|
||||
return ""
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func SystemTrim(cmd string) string {
|
||||
ret := ""
|
||||
out,err := exec.Command("bash","-c",cmd).Output()
|
||||
|
||||
Reference in New Issue
Block a user