提交 c7d15cbe 编写于 作者: yanghye's avatar yanghye

command-line tools: linux arm add, run.sh, startup.sh

上级 c1db1a6f
......@@ -17,7 +17,7 @@ message()
}
# install path libcef.so
LIBCEF="{{.CEFPATH}}/libcef.so"
LIBCEF="{{.INSTALLPATH}}/libcef.so"
if [ ! -e "$LIBCEF" ]; then
message "No CEF libcef.so found. Please make sure CEF point to valid installation."
......@@ -29,5 +29,7 @@ fi
export LD_PRELOAD="$LIBCEF"
# Execution File Name
exec {{.EXECUTE}}
STARTUP="{{.INSTALLPATH}}/{{.EXECUTE}}"
exec $STARTUP
......@@ -109,7 +109,7 @@ func generaProject(c *command.Config) error {
return nil
}
if consts.IsLinux /* && consts.IsARM64*/ {
if consts.IsLinux && consts.IsARM64 {
if err := createFile("assets/initialize/run.sh", "run.sh", nil, 0755); err != nil {
return err
}
......
......@@ -236,7 +236,7 @@ func linuxOptCopy(proj *project.Project, appRoot string) error {
}
func linuxARMStartupSH(proj *project.Project, appRoot string) error {
if consts.IsLinux /* && consts.IsARM64*/ {
if consts.IsLinux && consts.IsARM64 {
term.Logger.Info("Generate dpkg startup.sh")
buildOutDir := assets.BuildOutPath(proj)
appDir := filepath.Join(buildOutDir, appRoot)
......@@ -244,7 +244,7 @@ func linuxARMStartupSH(proj *project.Project, appRoot string) error {
return err
} else {
data := make(map[string]any)
data["CEFPATH"] = opt(proj)
data["INSTALLPATH"] = opt(proj)
data["EXECUTE"] = proj.Name
if content, err := tools.RenderTemplate(string(startupshData), data); err != nil {
return err
......@@ -279,7 +279,7 @@ func linuxDesktop(proj *project.Project, appRoot string) error {
optDir := opt(proj)
_, icon := filepath.Split(proj.Info.Icon)
startup := proj.Name
if consts.IsLinux /* && consts.IsARM64*/ {
if consts.IsLinux && consts.IsARM64 {
startup += ".sh"
}
data := make(map[string]any)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册