mirror of
https://github.com/fontmgr/MesloLGSNF.git
synced 2025-08-15 09:42:10 +08:00
🦈🏠🐜❗ Updated installer ❗🐜🦈🏠
This commit is contained in:
parent
359e0f11de
commit
414f3b2952
22
README.md
22
README.md
@ -1,19 +1,25 @@
|
|||||||
## MesloLGS NF Font
|
## MesloLGSNF Font
|
||||||
|
|
||||||
requires:
|
Requires:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
sudo bash -c "$(curl -LSs https://github.com/casjay-dotfiles/scripts/raw/master/install.sh)"
|
sudo bash -c "$(curl -LSs https://github.com/dfmgr/installer/raw/master/install.sh)"
|
||||||
```
|
```
|
||||||
|
|
||||||
install:
|
Automatic:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
|
bash -c "$(curl -LSs https://github.com/fontmgr/MesloLGSNF/raw/master/install.sh)"
|
||||||
|
```
|
||||||
|
|
||||||
|
Install:
|
||||||
|
|
||||||
|
```shell
|
||||||
sudo fontmgr install MesloLGSNF
|
sudo fontmgr install MesloLGSNF
|
||||||
```
|
```
|
||||||
|
|
||||||
update:
|
Update:
|
||||||
|
|
||||||
```bash
|
```shell
|
||||||
sudo fontmgr update MesloLGSNF
|
sudo fontmgr update MesloLGSNF
|
||||||
```
|
```
|
||||||
|
85
install.sh
85
install.sh
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
APPNAME="$(basename $0)"
|
APPNAME="MesloLGSNF"
|
||||||
USER="${SUDO_USER:-${USER}}"
|
USER="${SUDO_USER:-${USER}}"
|
||||||
HOME="${USER_HOME:-${HOME}}"
|
HOME="${USER_HOME:-${HOME}}"
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ HOME="${USER_HOME:-${HOME}}"
|
|||||||
# @Author : Jason
|
# @Author : Jason
|
||||||
# @Contact : casjaysdev@casjay.net
|
# @Contact : casjaysdev@casjay.net
|
||||||
# @File : install.sh
|
# @File : install.sh
|
||||||
# @Created : Wed, Aug 09, 2020, 02:00 EST
|
# @Created : Fr, Aug 28, 2020, 00:00 EST
|
||||||
# @License : WTFPL
|
# @License : WTFPL
|
||||||
# @Copyright : Copyright (c) CasjaysDev
|
# @Copyright : Copyright (c) CasjaysDev
|
||||||
# @Description : installer script for MesloLGSNF font
|
# @Description : installer script for MesloLGSNF font
|
||||||
@ -28,49 +28,42 @@ if [ -f "$SCRIPTSFUNCTDIR/functions/$SCRIPTSFUNCTFILE" ]; then
|
|||||||
elif [ -f "$HOME/.local/share/CasjaysDev/functions/$SCRIPTSFUNCTFILE" ]; then
|
elif [ -f "$HOME/.local/share/CasjaysDev/functions/$SCRIPTSFUNCTFILE" ]; then
|
||||||
. "$HOME/.local/share/CasjaysDev/functions/$SCRIPTSFUNCTFILE"
|
. "$HOME/.local/share/CasjaysDev/functions/$SCRIPTSFUNCTFILE"
|
||||||
else
|
else
|
||||||
mkdir -p "/tmp/CasjaysDev/functions"
|
curl -LSs "$SCRIPTSFUNCTURL/$SCRIPTSFUNCTFILE" -o "/tmp/$SCRIPTSFUNCTFILE" || exit 1
|
||||||
curl -LSs "$SCRIPTSFUNCTURL/$SCRIPTSFUNCTFILE" -o "/tmp/CasjaysDev/functions/$SCRIPTSFUNCTFILE" || exit 1
|
. "/tmp/$SCRIPTSFUNCTFILE"
|
||||||
. "/tmp/CasjaysDev/functions/$SCRIPTSFUNCTFILE"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
system_installdirs
|
||||||
|
|
||||||
|
# OS Support: supported_os unsupported_oses
|
||||||
|
|
||||||
|
unsupported_oses
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# Make sure the scripts repo is installed
|
# Make sure the scripts repo is installed
|
||||||
|
|
||||||
#scripts_check
|
scripts_check
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# Defaults
|
# Defaults
|
||||||
|
APPNAME="${APPNAME:-MesloLGSNF}"
|
||||||
APPNAME="MesloLGSNF"
|
APPDIR="${APPDIR:-$SHARE/CasjaysDev/fontmgr}/$APPNAME"
|
||||||
PLUGNAME=""
|
REPO="${FONTMGRREPO:-https://github.com/fontmgr}/${APPNAME}"
|
||||||
|
REPORAW="${REPORAW:-$REPO/raw}"
|
||||||
|
APPVERSION="$(curl -LSs $REPORAW/master/version.txt)"
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# git repos
|
# dfmgr_install fontmgr_install iconmgr_install pkmgr_install systemmgr_install thememgr_install wallpapermgr_install
|
||||||
|
|
||||||
PLUGINREPO=""
|
fontmgr_install
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# Version
|
# Version
|
||||||
|
|
||||||
APPVERSION="$(curl -LSs ${FONTMGRREPO:-https://github.com/fontmgr}/$APPNAME/raw/master/version.txt)"
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
|
|
||||||
# set the install type
|
|
||||||
|
|
||||||
font_installer
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
|
|
||||||
# Set options
|
|
||||||
|
|
||||||
APPDIR="$SHARE/CasjaysDev/fontmgr/$APPNAME"
|
|
||||||
PLUGDIR="$SHARE/$APPNAME/${PLUGNAME:-plugins}"
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# Script options IE: --help
|
# Script options IE: --help
|
||||||
@ -79,6 +72,12 @@ show_optvars "$@"
|
|||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
# Do not update
|
||||||
|
|
||||||
|
#systemmgr_noupdate
|
||||||
|
|
||||||
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# Requires root - no point in continuing
|
# Requires root - no point in continuing
|
||||||
|
|
||||||
#sudoreq # sudo required
|
#sudoreq # sudo required
|
||||||
@ -117,7 +116,7 @@ install_cpan $CPAN
|
|||||||
install_gem $GEMS
|
install_gem $GEMS
|
||||||
|
|
||||||
# Other dependencies
|
# Other dependencies
|
||||||
dotfilesreq
|
dotfilesreq git
|
||||||
dotfilesreqadmin
|
dotfilesreqadmin
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
@ -134,31 +133,12 @@ ensure_perms
|
|||||||
if [ -d "$APPDIR/.git" ]; then
|
if [ -d "$APPDIR/.git" ]; then
|
||||||
execute \
|
execute \
|
||||||
"git_update $APPDIR" \
|
"git_update $APPDIR" \
|
||||||
"Updating $APPNAME fonts"
|
"Updating $APPNAME configurations"
|
||||||
else
|
else
|
||||||
execute \
|
execute \
|
||||||
"backupapp && \
|
"backupapp && \
|
||||||
git_clone -q $REPO/$APPNAME $APPDIR" \
|
git_clone -q $REPO/$APPNAME $APPDIR" \
|
||||||
"Installing $APPNAME fonts"
|
"Installing $APPNAME configurations"
|
||||||
fi
|
|
||||||
|
|
||||||
# exit on fail
|
|
||||||
failexitcode
|
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|
||||||
|
|
||||||
# Plugins
|
|
||||||
|
|
||||||
if [ "$PLUGNAME" != "" ]; then
|
|
||||||
if [ -d "$PLUGDIR"/.git ]; then
|
|
||||||
execute \
|
|
||||||
"git_update $PLUGDIR" \
|
|
||||||
"Updating $PLUGNAME"
|
|
||||||
else
|
|
||||||
execute \
|
|
||||||
"git_clone $PLUGINREPO $PLUGDIR" \
|
|
||||||
"Installing $PLUGNAME"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# exit on fail
|
# exit on fail
|
||||||
@ -169,19 +149,18 @@ failexitcode
|
|||||||
# run post install scripts
|
# run post install scripts
|
||||||
|
|
||||||
run_postinst() {
|
run_postinst() {
|
||||||
run_postinst_global
|
fontmgr_run_post
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
execute \
|
execute \
|
||||||
"run_postinst" \
|
"run_postinst" \
|
||||||
"Running post install scripts"
|
"Running post install scripts"
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
# create version file
|
# create version file
|
||||||
|
|
||||||
install_fontmgr_version
|
fontmgr_install_version
|
||||||
|
|
||||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
082620201344-git
|
082820201735-git
|
||||||
|
Loading…
x
Reference in New Issue
Block a user