Skip to content

Commit

Permalink
Support arm, x86, amd64
Browse files Browse the repository at this point in the history
  • Loading branch information
E7KMbb committed Oct 2, 2020
1 parent 9057c70 commit 41d9ca7
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
16 changes: 0 additions & 16 deletions META-INF/Surprise.txt

This file was deleted.

18 changes: 17 additions & 1 deletion customize.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,26 @@ REPLACE="
# 将 $ZIPFILE 提取到 $MODPATH
ui_print "- 解压模块文件"
unzip -o "$ZIPFILE" -x 'META-INF/*' -d $MODPATH >&2
tar -xf $MODPATH/node.tar.xz -C $TMPDIR >&2
case "${ARCH}" in
arm)
mv -f $TMPDIR/node/node-arm $MODPATH/node
;;
arm64)
mv -f $TMPDIR/node/node-arm64 $MODPATH/node
;;
x86)
mv -f $TMPDIR/node/node-x86 $MODPATH/node
;;
x86_64)
mv -f $TMPDIR/node/node-x64 $MODPATH/node
;;
esac

# 删除多余文件
rm -rf \
$MODPATH/system/placeholder $MODPATH/customize.sh \
$MODPATH/*.md $MODPATH/.git* $MODPATH/LICENSE 2>/dev/null
$MODPATH/*.md $MODPATH/.git* $MODPATH/LICENSE $MODPATH/node.tar.xz 4>/dev/null

##########################################################################################
# 权限设置
Expand Down
Binary file renamed node → node.tar.xz
Binary file not shown.

0 comments on commit 41d9ca7

Please sign in to comment.