| Crates.io | sgdkx |
| lib.rs | sgdkx |
| version | 0.2.3 |
| created_at | 2025-07-22 05:19:31.927082+00 |
| updated_at | 2025-07-22 05:54:03.166677+00 |
| description | Unofficial command-line toolkit for SGDK |
| homepage | |
| repository | https://github.com/ulalume/sgdkx |
| max_upload_size | |
| id | 1763036 |
| size | 1,211,081 |
๐ฏ๐ต ๆฅๆฌ่ช็ README ใฏใใกใใใ่ฆงใใ ใใใ
sgdkx is a CLI tool to support development with SGDK (Sega Genesis Development Kit).
cargo install sgdkx
The following tools are required. You can install them with Homebrew:
brew install make openjdk compiledb
brew tap gcenx/wine
brew install --cask --no-quarantine wine-crossover
brew install doxygen # options
git is usually pre-installed, but if not, install it with brew install git.sgdkx with no command will perform an environment check and show if all required tools are installed.Main commands:
sgdkx
Show environment check, SGDK/emulator configuration, and help message.
sgdkx setup [--version <version>]
Download and install SGDK (Sega Genesis Development Kit).
You can specify the version with --version (default: master).
The --version option accepts a branch name, tag, or commit ID.
Examples:
--version V2.11 for tag V2.11--version ef9292c0 for commit ID ef9292c0
The SGDK path and version are saved in config.toml.sgdkx setup-emu [gens|blastem]
Download and install an emulator (Gens or BlastEm).
The path to the emulator is saved in config.toml.
sgdkx new <project_name>
Create a new project from the SGDK sample.
sgdkx run [--emulator <gens|blastem>] [--rom <path>]
Run the ROM file with the specified emulator (default: gens or installed emulator).
You can specify the emulator with --emulator and the ROM file path with --rom (default: out/rom.bin).
sgdkx uninstall
Uninstall SGDK, remove configuration, and also delete any emulators (Gens/BlastEm) installed via setup-emu at the paths recorded in config.toml.
sgdkx doc
If SGDK documentation exists, it will be opened in your browser.
sgdkx setup-web
Download a web emulator template for playing your ROM in a browser.
sgdkx web-export [--rom <path>] [--dir <parent-dir>]
Export your ROM and a web emulator template for browser-based play.
This command copies a web emulator template (HTML/JS/WASM) and your ROM into a new web-export directory under the specified parent directory (default: current directory).
sgdkx web-server [--dir <directory>] [--port <port>]
Serve the web-export directory using a built-in HTTP server (with COOP/COEP headers for WASM compatibility).
By default, it serves the web-export directory at localhost:8080. You can change the directory and port using the options.
Example: sgdkx web-server --dir web-export --port 9000
sgdkx setup --version v2.11 # stable
sgdkx setup-emu
sgdkx new your_project
cd your_project
make
sgdkx run
Unofficial tools for SGDK workflow
Usage: sgdkx [COMMAND]
Commands:
setup Setup SGDK for development
doc Show SGDK documentation status
setup-emu Setup emulator for running ROM files
new Create a new SGDK project
run Run ROM file with emulator
uninstall Uninstall SGDK installation and configuration
web-export Export ROM and web emulator template for web deployment
web-server Serve web-export directory with HTTP server (with COOP/COEP headers)
open Open SGDK installation directory
setup-web Setup web export template
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
๐ฉบ sgdkx Environment Check
โ
git: /opt/homebrew/bin/git
โ
make: /usr/bin/make
โ
java: /opt/homebrew/opt/openjdk/bin/java
โ
compiledb: /opt/homebrew/bin/compiledb
โ
doxygen: /opt/homebrew/bin/doxygen
โ
wine: /opt/homebrew/bin/wine
๐ sgdkx Configuration: /Users/[user]/.sgdkx/data/config.toml
SGDK Path : /Users/[user]/.sgdkx/data/SGDK
Version : v2.11
Commit ID : ef9292c03fe33a2f8af3a2589ab856a53dcef35c
Gens Path : /Users/[user]/.sgdkx/data/gens/gens.exe
blastem Path: Not installed
๐ SGDK documentation: /Users/[user]/.sgdkx/data/SGDK/doc/html/index.html
Special thanks to these excellent projects.