📝 docs: Windows版ビルド手順を全ドキュメントに追記
🪟 新機能追加: • cargo-xwinクロスコンパイル手順 • Windows実行ファイル (916KB) 生成方法 • Linux/WSL/Windows/WebAssembly 4プラットフォーム対応 📚 更新ドキュメント: • CLAUDE.md - 開発ガイド更新 • README.md - 英語版に Windows クロスコンパイル • README.ja.md - 日本語版に Windows 手順 🎯 完全マルチプラットフォーム対応達成! Linux + Windows + WebAssembly のトリプル展開可能 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
24
CLAUDE.md
24
CLAUDE.md
@ -4,11 +4,29 @@ Nyashプログラミング言語開発に必要な情報をまとめたクイッ
|
|||||||
|
|
||||||
## 🚀 クイックスタート
|
## 🚀 クイックスタート
|
||||||
|
|
||||||
|
### 🐧 Linux/WSL版
|
||||||
```bash
|
```bash
|
||||||
# ビルドと実行
|
# ビルドと実行
|
||||||
cd nyash-rust
|
cargo build --release
|
||||||
cargo build
|
./target/release/nyash program.nyash
|
||||||
./target/debug/nyash program.nyash
|
```
|
||||||
|
|
||||||
|
### 🪟 Windows版 (NEW!)
|
||||||
|
```bash
|
||||||
|
# クロスコンパイルでWindows実行ファイル生成
|
||||||
|
cargo install cargo-xwin
|
||||||
|
cargo xwin build --target x86_64-pc-windows-msvc --release
|
||||||
|
|
||||||
|
# 生成された実行ファイル (916KB)
|
||||||
|
target/x86_64-pc-windows-msvc/release/nyash.exe
|
||||||
|
```
|
||||||
|
|
||||||
|
### 🌐 WebAssembly版
|
||||||
|
```bash
|
||||||
|
# ブラウザープレイグラウンド
|
||||||
|
cd projects/nyash-wasm
|
||||||
|
./build.sh
|
||||||
|
# nyash_playground.html をブラウザーで開く
|
||||||
```
|
```
|
||||||
|
|
||||||
## 📚 ドキュメント構造
|
## 📚 ドキュメント構造
|
||||||
|
|||||||
14
README.ja.md
14
README.ja.md
@ -225,6 +225,8 @@ cd projects/nyash-wasm
|
|||||||
```
|
```
|
||||||
|
|
||||||
### ネイティブ開発
|
### ネイティブ開発
|
||||||
|
|
||||||
|
#### 🐧 Linux/WSL
|
||||||
```bash
|
```bash
|
||||||
# ネイティブバージョンビルド
|
# ネイティブバージョンビルド
|
||||||
cargo build --release
|
cargo build --release
|
||||||
@ -237,6 +239,18 @@ cargo build --release
|
|||||||
./target/release/nyash app_dice_rpg.nyash
|
./target/release/nyash app_dice_rpg.nyash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 🪟 Windows版 (クロスコンパイル)
|
||||||
|
```bash
|
||||||
|
# クロスコンパイラーインストール
|
||||||
|
cargo install cargo-xwin
|
||||||
|
|
||||||
|
# Windows実行ファイルビルド
|
||||||
|
cargo xwin build --target x86_64-pc-windows-msvc --release
|
||||||
|
|
||||||
|
# 生成された実行ファイル (916KB)
|
||||||
|
target/x86_64-pc-windows-msvc/release/nyash.exe
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🎯 **対象ユーザー**
|
## 🎯 **対象ユーザー**
|
||||||
|
|||||||
14
README.md
14
README.md
@ -225,6 +225,8 @@ cd projects/nyash-wasm
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Native Development
|
### Native Development
|
||||||
|
|
||||||
|
#### Linux/WSL
|
||||||
```bash
|
```bash
|
||||||
# Build native version
|
# Build native version
|
||||||
cargo build --release
|
cargo build --release
|
||||||
@ -237,6 +239,18 @@ cargo build --release
|
|||||||
./target/release/nyash app_dice_rpg.nyash
|
./target/release/nyash app_dice_rpg.nyash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### 🪟 Windows (Cross-compile)
|
||||||
|
```bash
|
||||||
|
# Install cross-compiler
|
||||||
|
cargo install cargo-xwin
|
||||||
|
|
||||||
|
# Build Windows executable
|
||||||
|
cargo xwin build --target x86_64-pc-windows-msvc --release
|
||||||
|
|
||||||
|
# Generated executable (916KB)
|
||||||
|
target/x86_64-pc-windows-msvc/release/nyash.exe
|
||||||
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## 🤝 **Contributing**
|
## 🤝 **Contributing**
|
||||||
|
|||||||
Reference in New Issue
Block a user