|
@@ -19,7 +19,7 @@ shopt -s extglob
|
|
|
declare -g SCRIPTVERSION="1.0-dev"
|
|
|
declare -g BOARDURL="https://yabb.jriver.com/interact/index.php/board,83.0.html" # MC32
|
|
|
declare -g DEBIANBASE="bullseye"
|
|
|
-declare -g MC_VERSION_HARDCODE="32.0.6" # Do find all replace
|
|
|
+declare -g MC_VERSION_HARDCODE="32.0.45" # Do find all replace
|
|
|
|
|
|
printHelp() {
|
|
|
debug "Running: ${FUNCNAME[0]}"
|
|
@@ -43,6 +43,8 @@ printHelp() {
|
|
|
Specify the MC version, ex. "$MC_VERSION_HARDCODE" (default: latest version)
|
|
|
--arch VERSION
|
|
|
Specify the MC architecture, ex. "amd64", "arm64", etc (default: host architecture)
|
|
|
+ --base DEBIAN_BASE
|
|
|
+ Specify the MC debian base, ex. "bullseye", "bookworm", "noble", etc (default: latest official)
|
|
|
--outputdir PATH
|
|
|
Generate rpmbuild output in this directory (default: ./output)
|
|
|
--restorefile RESTOREFILE
|
|
@@ -283,11 +285,12 @@ parseInput() {
|
|
|
LOCAL_INSTALL_SWITCH=1
|
|
|
fi
|
|
|
|
|
|
- long_opts="install:,build::,outputdir:,mcversion:,restorefile:,betapass:,"
|
|
|
+ long_opts="install:,build::,outputdir:,mcversion:,arch:,base:,compat,"
|
|
|
+ long_opts="restorefile:,betapass:,"
|
|
|
long_opts+="service-type:,service:,services:,"
|
|
|
- long_opts+="version,debug,verbose,help,uninstall,tests,"
|
|
|
+ long_opts+="version,debug,verbose,help,uninstall,tests,yes,auto,"
|
|
|
long_opts+="createrepo::,createrepo-webroot:,createrepo-user:,"
|
|
|
- long_opts+="vncpass:,display:,container:,compat,arch:,yes,auto"
|
|
|
+ long_opts+="vncpass:,display:,container:"
|
|
|
short_opts="+i:vb::dhus:c:"
|
|
|
|
|
|
# Reset DEBUG and catch with getopt
|
|
@@ -324,6 +327,9 @@ parseInput() {
|
|
|
--arch)
|
|
|
shift && USER_ARCH="$1"
|
|
|
;;
|
|
|
+ --base)
|
|
|
+ shift && declare -g DEBIANBASE="$1"
|
|
|
+ ;;
|
|
|
--restorefile)
|
|
|
shift && RESTOREFILE="$1"
|
|
|
;;
|