Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

pyxelによるシェルコマンドのGUI実行アプリ
ローカルのシェルコマンドを登録して、ボタン操作で実行することができます。

A GUI application for executing shell commands using Pyxel.
You can register local shell commands and execute them via button controls.

スクリーンショット Screenshot

タイトル画面 Title Screen

screenshot1

シェル一覧画面 List Screen

screenshot2

新規追加画面 Add Screen

screenshot3

設定画面 Options Screen

screenshot4

使い方 How to use

  • 一覧画面の再生ボタンplay_buttonを押下することで登録したシェルが実行されます。

  • 一覧画面の下部へログが一部表示されますが、最後の5行しか表示されません。

  • 全てのログを確認する場合はログボタンlog_buttonを押してください。別ウィンドウでログファイルが開かれます。

  • 一覧画面の編集ボタンedit_buttonを押下することでシェルの編集ができます。

  • シェルを削除する場合は、、編集画面移動後、Ctrlキーを押しながら右上のゴミ箱ボタンtrush_buttonを押すと削除できます。

  • 一覧画面右上のプラスボタンplus_buttonからシェルの追加ができます。

  • シェルの追加時、ペーストボタンpaste_buttonを押すことで対応する入力欄へクリップボードからのペーストが可能です。

  • ログファイル含めた全てのファイルは、WIndowsの場合C:\Users\yourname\.pyxel\okapping\sh-runner\へ作成され、macの場合は/Users/yourname/.pyxel/okapping/sh-runnerへ作成されます。

  • エスケープキーでアプリを強制終了します。

  • Press the play button play_button on ​​the list screen to execute the registered shell command.

  • A partial log is displayed at the bottom of the list screen, but only the last five lines are shown.

  • To view the full log, press the log button log_button; the log file will open in a separate window.

  • Press the edit button edit_button on ​​the list screen to edit the shell command.

  • To delete a shell command, navigate to the edit screen, then hold down the Ctrl key and press the trash button trush_button in the top-right corner.

  • You can add a new shell command using the plus button plus_button in the top-right corner of the list screen.

  • When adding a shell command, pressing the paste button paste_button allows you to paste content from the clipboard into the corresponding input field.

  • All files, including log files, are created at C:\Users\yourname\.pyxel\okapping\sh-runner\ on Windows and /Users/yourname/.pyxel/okapping/sh-runner on macOS.

  • Press the Escape key to force-quit the application.

追加予定機能 Planned features

  • スクリプトの停止機能 Script stop function
  • pyxelならではの遊び心の追加 Addition of playful elements unique to Pyxel
  • 設定画面のカスタマイズ項目の追加 Addition of customization options to the settings screen
  • マニュアルボタンへ役割を与える Assigning a function to the manual button
  • シェルスクリプト以外も検討 Considering options other than shell scripts

ビルド方法 How to build

# clone
git clone https://github.com/okapping/SH-RUNNER.git
cd SH-RUNNER

# make venv
python3 -m venv .venv
source .venv/bin/activate

# packages install
pip install --upgrade pip
pip install -r requirements.txt

# build
chmod +x build_script.sh
./build_script.sh  
# >> 🔍dist/sh-runner.app

こんな時は。

★ スクリプト内のパスが "相対パス" で書かれている場合、うまく動きません。

シェルに以下を追加し、スクリプトの場所をカレントディレクトリとするようにしてください。

#!/usr/bin/env sh
set -eu

# このシェルが置かれているディレクトリを基準にする
SCRIPT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
cd "$SCRIPT_DIR"

# 以降通常通りのスクリプト。

ライセンス

MIT

About

Script execution app built with Pyxel

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages