-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Moddable上のm5stack_cores3のSPIRAMを無効化するスクリプトを追加 * CIにSPIRAM無効化設定スクリプト呼び出し処理を追加 * 設定スクリプトのxs-dev-export.sh追記処理を追加 * 日本語のmac/linux向け環境構築を修正 * mac/linux向けの書き込みドキュメント修正 * PSRAM無効化とxs-devの環境設定更新スクリプトを分割 * 設定スクリプトをディレクトリにまとめる * CIの中で呼び出す設定スクリプトコマンドを修正 * xs-devを設定するスクリプトの権限を変更 * 分割したスクリプトにしたがってドキュメントを修正 * PSRAMに関する補足事項を箇条書きに変更 * ドキュメントにPSRAMの環境設定確認の項目を追加 * getting-startedの英語版を修正 * 日本語のgetting-started._ja.mdの見栄えを修正 * getteing-started_ja.mdの箇条書きを修正 * getting-started.mdの文章中に抜けていたハイライトや段落を一部修正 * 章の階層と章名を変更 * 章階層の変更 * PSRAMの注釈内容を変更 * WSL2のドキュメントを修正 * PSRAM無効化のsedコマンドのバリエーションにmac向けの条件を追加 * 設定スクリプトのファイル名変更 * 設定スクリプト名の変更をCIとドキュメントに反映 * 必要なソフトウェアツールにcmakeを追加 * Web書き込み機能のリンクと手順をトップREADMEに追記 * ドキュメント類の表現やコマンドを修正 * WSL2マニュアルのPSRAM確認コマンド用画像サイズを変更
- Loading branch information
Showing
13 changed files
with
172 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/bin/sh | ||
|
||
# 追記するコマンドを設定 | ||
XS_DEV_SH="source ~/.local/share/xs-dev-export.sh" | ||
|
||
# 現在のシェルを取得 | ||
CURRENT_SHELL=$(basename "$SHELL") | ||
|
||
# 設定ファイルを決定 | ||
if [ "$CURRENT_SHELL" = "bash" ]; then | ||
CONFIG_FILE="$HOME/.bashrc" | ||
elif [ "$CURRENT_SHELL" = "zsh" ]; then | ||
CONFIG_FILE="$HOME/.zshrc" | ||
else | ||
echo "Unsupported shell: $CURRENT_SHELL" | ||
exit 1 | ||
fi | ||
|
||
# 設定ファイルが存在しない場合は作成 | ||
if [ ! -f "$CONFIG_FILE" ]; then | ||
touch "$CONFIG_FILE" | ||
echo "# Created $CONFIG_FILE for $CURRENT_SHELL settings" >> "$CONFIG_FILE" | ||
echo "$CONFIG_FILE was created." | ||
fi | ||
|
||
# ファイルに追記 | ||
if grep -Fxq "$XS_DEV_SH" "$CONFIG_FILE"; then | ||
echo "The string '$XS_DEV_SH' already exists in $CONFIG_FILE. No changes made." | ||
else | ||
echo "$XS_DEV_SH" >> "$CONFIG_FILE" | ||
echo "The string '$XS_DEV_SH' has been added to $CONFIG_FILE." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/sh | ||
|
||
# 設定ファイルパスを取得 | ||
SDKCONFIG="$HOME/.local/share/moddable/build/devices/esp32/targets/m5stack_cores3/sdkconfig/sdkconfig.defaults" | ||
|
||
# macOS と Linux の sed コマンドの互換性を考慮 | ||
if [ "$(uname)" = "Darwin" ]; then | ||
# macOS 用 | ||
sed -i '' 's/CONFIG_SPIRAM=y/CONFIG_SPIRAM=n/' "$SDKCONFIG" | ||
else | ||
# Linux 用 | ||
sed -i 's/CONFIG_SPIRAM=y/CONFIG_SPIRAM=n/' "$SDKCONFIG" | ||
fi | ||
|
||
# 結果を表示 | ||
cat "$SDKCONFIG" |