Plugin Execution on MacOS
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
Start by locating the plugin-generation script that processes setup.php, hook.php, $LNAME.xml, tools/HEADER, and README.md. Review the macOS and non-macOS branches, then run the plugin generation flow on macOS and another system to verify name substitutions and generated filenames behave as intended.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
To run the plugin on MacOS we required some customizations please merge it if possible
LNAME and UNAME was returning blank causing the issue
# Check if running on macOS
if [[ "$(uname)" == "Darwin" ]]; then
# Use tr for macOS
NAME=$(echo "$1" | tr -dc 'a-zA-Z')
LNAME=$(echo "$NAME" | tr '[:upper:]' '[:lower:]') # Convert to lowercase
UNAME=$(echo "$NAME" | tr '[:lower:]' '[:upper:]') # Convert to uppercase
else
# Use Bash 4+ syntax for other systems
NAME=$(echo "$1" | tr -dc '[[:alpha:]]')
LNAME=${NAME,,} # Convert to lowercase
UNAME=${NAME^^} # Convert to uppercase
fi
Replacement was failing and getting new files with names as hook.phpsetup.php etc
# Check if running on macOS
if [[ "$(uname)" == "Darwin" ]]; then
# Use tr for macOS
sed \
-e "s/{NAME}/$NAME/g" \
-e "s/{LNAME}/$LNAME/g" \
-e "s/{UNAME}/$UNAME/g" \
-e "s/{VERSION}/$VERSION/g" \
-e "s/{YEAR}/$YEAR/g" \
-i '' setup.php hook.php $LNAME.xml tools/HEADER README.md
else
# Use Bash 4+ syntax for other systems
sed \
-e "s/{NAME}/$NAME/" \
-e "s/{LNAME}/$LNAME/" \
-e "s/{UNAME}/$UNAME/" \
-e "s/{VERSION}/$VERSION/" \
-e "s/{YEAR}/$YEAR/" \
-i setup.php hook.php $LNAME.xml tools/HEADER README.md
fi
- Lingua principale
- PHP
- Stelle
- 15
- Fork
- 21
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pluginsGLPI/empty
-
provide a windows batch fileForse di nuovo libera @trasher l’ha presa 3528 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement
pluginsGLPI/empty#22 · 3 commenti · 1 assegnatario ·
Tutte le issue di pluginsGLPI/empty
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
TYPO3-Solr/ext-solr#4850 ·
I maintainer di solito rispondono entro 2 giorni
-
Hex viewer drops ASCII '0' after a complete rowForse già presa @palashranka l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 3 giorni
-
[Sync EN] stream: document the errors of the stream_context_*() and stream filter functions (#6091)Apertasync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
[Sync EN] stream: document the errors of the stream_context_*() and stream filter functions (#6091)Apertasync-en
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 1 giorno
-
Перевод устарел
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno