Plugin Execution on MacOS
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 45/100
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- PHP
- スター
- 15
- フォーク
- 21
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pluginsGLPI/empty のほかの issue
-
enhancement
pluginsGLPI/empty#22 · コメント 3 件 · 担当者 1 名 ·
pluginsGLPI/empty の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
getgrav/grav-plugin-form#656 ·
-
customer-support needs-triage Platform(Default)
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
sync-en
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
Перевод устарел
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100