update amd64/net.huangyuhui.hmcl/build.sh.
Signed-off-by: shenmo <jifengshenmo@outlook.com>
This commit is contained in:
@@ -12,6 +12,25 @@ WORKDIR=`mktemp -d`
|
|||||||
ARCH="" # Define it later
|
ARCH="" # Define it later
|
||||||
ARCH_ANOTHERWAY="" # Define it later
|
ARCH_ANOTHERWAY="" # Define it later
|
||||||
|
|
||||||
|
if [ "$1" = "amd64" ] || [ "$1" = "x64" ];then
|
||||||
|
ARCH="amd64"
|
||||||
|
ARCH_ANOTHERWAY="-amd64"
|
||||||
|
ARCH_STORE_PATH="amd64-store"
|
||||||
|
elif [ "$1" = "arm64" ] || [ "$1" = "arm" ];then
|
||||||
|
ARCH="arm64"
|
||||||
|
ARCH_ANOTHERWAY="-aarch64"
|
||||||
|
ARCH_STORE_PATH="arm64-store"
|
||||||
|
elif [ "$1" = "loong64" ];then
|
||||||
|
ARCH="loong64"
|
||||||
|
ARCH_ANOTHERWAY="-loong64"
|
||||||
|
ARCH_STORE_PATH="loong64-store"
|
||||||
|
else
|
||||||
|
log.error "Err:Invalid Architecture"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
PKG_NAME="net.hmcl.huangyuhui"
|
PKG_NAME="net.hmcl.huangyuhui"
|
||||||
APP_NAME="HMCL我的世界启动器"
|
APP_NAME="HMCL我的世界启动器"
|
||||||
GITHUB_REPO="HMCL-dev/HMCL" #格式像这样。只在从github获取信息才使用,如果不是,则注释掉。后续下载也整合进入helper
|
GITHUB_REPO="HMCL-dev/HMCL" #格式像这样。只在从github获取信息才使用,如果不是,则注释掉。后续下载也整合进入helper
|
||||||
@@ -41,23 +60,7 @@ fi
|
|||||||
source /opt/bashimport/sbs-utils.bashimport
|
source /opt/bashimport/sbs-utils.bashimport
|
||||||
source /opt/bashimport/sbs-build-helper.bashimport
|
source /opt/bashimport/sbs-build-helper.bashimport
|
||||||
|
|
||||||
##这两个里面有详尽的解释
|
|
||||||
if [ "$1" = "amd64" ] || [ "$1" = "x64" ];then
|
|
||||||
ARCH="amd64"
|
|
||||||
ARCH_ANOTHERWAY="-amd64"
|
|
||||||
ARCH_STORE_PATH="amd64-store"
|
|
||||||
elif [ "$1" = "arm64" ] || [ "$1" = "arm" ];then
|
|
||||||
ARCH="arm64"
|
|
||||||
ARCH_ANOTHERWAY="-aarch64"
|
|
||||||
ARCH_STORE_PATH="arm64-store"
|
|
||||||
elif [ "$1" = "loong64" ];then
|
|
||||||
ARCH="loong64"
|
|
||||||
ARCH_ANOTHERWAY="-loong64"
|
|
||||||
ARCH_STORE_PATH="loong64-store"
|
|
||||||
else
|
|
||||||
log.error "Err:Invalid Architecture"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# ===== Log 用法 =====
|
# ===== Log 用法 =====
|
||||||
# log.info xxx
|
# log.info xxx
|
||||||
|
|||||||
Reference in New Issue
Block a user