Compare commits
3 Commits
8c4c4f078a
...
39c70dd983
| Author | SHA1 | Date | |
|---|---|---|---|
| 39c70dd983 | |||
| 791b0c29ab | |||
| af2e748efd |
@@ -27,7 +27,7 @@ $ installJRMC --help
|
||||
--compat
|
||||
Build/install MC locally without minimum dependency version requirements.
|
||||
--mcversion VERSION
|
||||
Specify the MC version, ex. "35.0.74" or "35" (default: latest release).
|
||||
Specify the MC version, ex. "35.0.78" or "35" (default: latest release).
|
||||
--arch ARCH
|
||||
Specify the target MC architecture, ex. "amd64", "arm64", etc (default: host).
|
||||
--mcrepo REPO
|
||||
@@ -128,8 +128,8 @@ Install the latest version of MC33 from the best available repository with debug
|
||||
Install a more widely-compatible version of the latest MC version.
|
||||
[code]installJRMC --install repo --service jriver-mediacenter --service-type user[/code]
|
||||
Install MC from the repository and start/enable jriver-mediacenter.service as a user service.
|
||||
[code]installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 35.0.74[/code]
|
||||
Build and install an MC 35.0.74 comptability RPM locally and activate it using the [tt]/path/to/license.mjr[/tt].
|
||||
[code]installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 35.0.78[/code]
|
||||
Build and install an MC 35.0.78 comptability RPM locally and activate it using the [tt]/path/to/license.mjr[/tt].
|
||||
[code]installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --webroot-user www-user[/code]
|
||||
Build an RPM locally for the current distro, move it to the webroot, and run createrepo as www-user.
|
||||
[code]installJRMC --service jriver-createrepo --createrepo-webroot /srv/jriver/repo --webroot-user www-user[/code]
|
||||
|
||||
@@ -28,7 +28,7 @@ OPTIONS
|
||||
--compat
|
||||
Build/install MC locally without minimum dependency version requirements.
|
||||
--mcversion VERSION
|
||||
Specify the MC version, ex. "35.0.74" or "35" (default: latest release).
|
||||
Specify the MC version, ex. "35.0.78" or "35" (default: latest release).
|
||||
--arch VERSION
|
||||
Specify the target MC architecture, ex. "amd64", "arm64", etc (default: host).
|
||||
--mcrepo REPO
|
||||
@@ -143,9 +143,9 @@ Multiple services (but not `--service-types`) can be installed using multiple `-
|
||||
|
||||
Install MC from the repository and start/enable `jriver-mediacenter.service` as a user service.
|
||||
|
||||
* `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 35.0.74`
|
||||
* `installJRMC --install local --compat --restorefile /path/to/license.mjr --mcversion 35.0.78`
|
||||
|
||||
Build and install an MC 35.0.74 compatibility RPM locally and activate it using the `/path/to/license.mjr`.
|
||||
Build and install an MC 35.0.78 compatibility RPM locally and activate it using the `/path/to/license.mjr`.
|
||||
|
||||
* `installJRMC --createrepo --createrepo-webroot /srv/jriver/repo --webroot-user www-user`
|
||||
|
||||
|
||||
16
installJRMC
16
installJRMC
@@ -22,8 +22,8 @@
|
||||
# shellcheck disable=SC2329
|
||||
shopt -s extglob
|
||||
|
||||
declare -g SCRIPT_VERSION="1.35.16"
|
||||
declare -g MC_VERSION_HARDCODE="35.0.74" # do find all replace
|
||||
declare -g SCRIPT_VERSION="1.35.17"
|
||||
declare -g MC_VERSION_HARDCODE="35.0.78" # do find all replace
|
||||
declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE
|
||||
declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection
|
||||
declare -gi SELF_UPDATE_SWITCH=1 # 0 to disable installJRMC self-update
|
||||
@@ -902,6 +902,18 @@ translate_packages() {
|
||||
;;
|
||||
*) echo "Skipping package translations for $ID" ;;
|
||||
esac
|
||||
|
||||
# TODO Quirks
|
||||
case $BUILD_TARGET in
|
||||
# RHEL 9
|
||||
centos)
|
||||
if [[ ${VERSION_ID%%.*} == 9 ]]; then
|
||||
requires_arr=("${requires_arr[@]/freetype*/freetype}") # remove freetype minimum version requirement
|
||||
requires_arr=("${requires_arr[@]/webkit2gtk*/webkit2gtk3}") # use webkit2gtk3
|
||||
requires_arr=("${requires_arr[@]/pango*/pango}") # remove pango minimum version requirement
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
# @description Creates an RPM .spec file and builds the RPM from the source DEB using rpmbuild
|
||||
|
||||
Reference in New Issue
Block a user