Skip to content

Commit f69a9e3

Browse files
committed
Remove website directory and update installation scripts
1 parent a5d49bd commit f69a9e3

12 files changed

Lines changed: 48 additions & 1475 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,17 @@ Claude CLIを使用したAI駆動のGitコミットメッセージ生成ツー
77
- ✅ 基本機能実装完了
88
- ✅ 多言語対応(6言語)
99
- ✅ 自動更新システム実装
10-
- ✅ Cloudflare Pages対応Webサイト作成
1110
- ✅ GitHub Actions設定
1211
- ✅ GitHubリポジトリ公開: https://github.com/0xkaz/claude-auto-commit
13-
- ✅ Webサイト公開: https://claude-auto-commit.0xkaz.com/
12+
- ✅ テンプレートシステム実装完了
13+
- ✅ v0.0.5リリース完了
1414

1515
## 🚀 次のTODO
1616

1717
### 即座に実行
18-
1. **v0.0.1の正式リリース**
19-
```bash
20-
git tag v0.0.1
21-
git push origin v0.0.1
22-
```
18+
1. **ドキュメントの最終更新確認**
19+
- READMEの内容確認
20+
- インストール手順の動作確認
2321

2422
2. **GitHubリポジトリの最適化**
2523
- Aboutセクションの設定(Description、Topics)
@@ -42,7 +40,6 @@ Claude CLIを使用したAI駆動のGitコミットメッセージ生成ツー
4240
```
4341
claude-auto-commit/
4442
├── src/ # メインスクリプト
45-
├── website/ # Cloudflare Pages用
4643
├── docs/ # 多言語ドキュメント
4744
├── scripts/ # インストール・ビルドスクリプト
4845
└── .github/workflows/ # CI/CD設定
@@ -51,10 +48,8 @@ claude-auto-commit/
5148
## 💡 開発メモ
5249
- 自動更新は24時間ごとにチェック
5350
- 設定ファイルは`~/.claude-auto-commit/config.yml`
54-
- ログは`~/.claude-auto-commit/logs/`に保存
55-
- Cloudflare Pagesは自動デプロイ設定済み
56-
- mainブランチへのプッシュ時に`website/`ディレクトリが自動デプロイ
57-
- デプロイ先: https://claude-auto-commit.0xkaz.com/
51+
- テンプレートは`~/.claude-auto-commit/templates/`に保存
52+
- GitHubリリースでスクリプトを配布
5853

5954
## 🐛 既知の問題
6055
- Windows対応は未テスト

README.md

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
66
[![GitHub release](https://img.shields.io/github/release/0xkaz/claude-auto-commit.svg)](https://github.com/0xkaz/claude-auto-commit/releases)
7-
[![Website](https://img.shields.io/badge/website-claude--auto--commit.0xkaz.com-blue)](https://claude-auto-commit.0xkaz.com/)
87
[![GitHub stars](https://img.shields.io/github/stars/0xkaz/claude-auto-commit.svg)](https://github.com/0xkaz/claude-auto-commit/stargazers)
98

109
Claude Auto-Commit is an open-source tool that automatically generates intelligent Git commit messages by analyzing your code changes using Claude AI. It integrates seamlessly into your development workflow and supports multiple languages and configurations.
@@ -20,7 +19,10 @@ Claude Auto-Commit is an open-source tool that automatically generates intellige
2019
### Installation
2120

2221
```bash
23-
curl -fsSL https://claude-auto-commit.0xkaz.com/install.sh | bash
22+
# Download the latest release
23+
curl -L -o claude-auto-commit https://github.com/0xkaz/claude-auto-commit/releases/latest/download/claude-auto-commit.sh
24+
chmod +x claude-auto-commit
25+
sudo mv claude-auto-commit /usr/local/bin/
2426
```
2527

2628
### Basic Usage
@@ -54,7 +56,7 @@ claude-auto-commit -l en -e -t feat
5456
- [日本語ドキュメント](./docs/ja/README.md)
5557
- [中文文档](./docs/zh/README.md)
5658

57-
Complete documentation and examples available at [claude-auto-commit.0xkaz.com](https://claude-auto-commit.0xkaz.com)
59+
Complete documentation available in this repository.
5860

5961
## 📋 Requirements
6062

@@ -144,14 +146,14 @@ claude-auto-commit --update
144146

145147
## 🔧 Installation Methods
146148

147-
### Method 1: One-liner (Recommended)
149+
### Method 1: Installation Script (Recommended)
148150
```bash
149-
curl -fsSL https://claude-auto-commit.0xkaz.com/install.sh | bash
151+
curl -fsSL https://raw.githubusercontent.com/0xkaz/claude-auto-commit/main/scripts/install.sh | bash
150152
```
151153

152-
### Method 2: Manual Download
154+
### Method 2: Download from GitHub Releases
153155
```bash
154-
# Download the script
156+
# Download the latest release
155157
curl -L -o claude-auto-commit https://github.com/0xkaz/claude-auto-commit/releases/latest/download/claude-auto-commit.sh
156158
chmod +x claude-auto-commit
157159
sudo mv claude-auto-commit /usr/local/bin/
@@ -165,6 +167,14 @@ chmod +x src/claude-auto-commit.sh
165167
sudo ln -s $(pwd)/src/claude-auto-commit.sh /usr/local/bin/claude-auto-commit
166168
```
167169

170+
### Method 4: Direct Script Usage
171+
```bash
172+
# For development or testing
173+
git clone https://github.com/0xkaz/claude-auto-commit.git
174+
cd claude-auto-commit
175+
./src/claude-auto-commit.sh [options]
176+
```
177+
168178
## ⚙️ Configuration
169179

170180
Create `~/.claude-auto-commit/config.yml`:
@@ -213,4 +223,4 @@ This project is licensed under the MIT License - see the [LICENSE](./LICENSE) fi
213223

214224
**Made with ❤️ for the developer community**
215225

216-
[Report Issues](https://github.com/0xkaz/claude-auto-commit/issues) | [Request Features](https://github.com/0xkaz/claude-auto-commit/issues/new?template=feature_request.md) | [Documentation](https://claude-auto-commit.0xkaz.com)
226+
[Report Issues](https://github.com/0xkaz/claude-auto-commit/issues) | [Request Features](https://github.com/0xkaz/claude-auto-commit/issues/new?template=feature_request.md) | [Documentation](https://github.com/0xkaz/claude-auto-commit)

_headers

Lines changed: 0 additions & 29 deletions
This file was deleted.

_redirects

Lines changed: 0 additions & 15 deletions
This file was deleted.

scripts/install.sh

Lines changed: 19 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# Claude Auto-Commit Installer
4-
# Usage: curl -fsSL https://claude-auto-commit.0xkaz.com/install.sh | bash
4+
# Usage: curl -fsSL https://raw.githubusercontent.com/0xkaz/claude-auto-commit/main/scripts/install.sh | bash
55

66
set -e
77

@@ -35,30 +35,17 @@ print_error() {
3535
echo -e "${RED}[ERROR]${NC} $1"
3636
}
3737

38-
# Detect OS and architecture
39-
detect_platform() {
40-
local os=$(uname -s | tr '[:upper:]' '[:lower:]')
41-
local arch=$(uname -m)
42-
38+
# Check if system is compatible
39+
check_system() {
40+
local os=$(uname -s)
4341
case $os in
44-
darwin) os="darwin" ;;
45-
linux) os="linux" ;;
46-
*)
47-
print_error "Unsupported OS: $os"
48-
exit 1
42+
Darwin|Linux)
43+
print_info "System: $os (compatible)"
4944
;;
50-
esac
51-
52-
case $arch in
53-
x86_64) arch="amd64" ;;
54-
arm64|aarch64) arch="arm64" ;;
55-
*)
56-
print_error "Unsupported architecture: $arch"
57-
exit 1
45+
*)
46+
print_warning "Untested OS: $os (may work)"
5847
;;
5948
esac
60-
61-
echo "${os}-${arch}"
6249
}
6350

6451
# Check if command exists
@@ -106,20 +93,19 @@ get_latest_version() {
10693
echo "$version"
10794
}
10895

109-
# Download and install binary
110-
install_binary() {
111-
local platform=$(detect_platform)
96+
# Download and install script
97+
install_script() {
11298
local version=$(get_latest_version)
113-
local url="https://github.com/$REPO/releases/download/$version/${BINARY_NAME}-${platform}"
99+
local url="https://github.com/$REPO/releases/download/$version/claude-auto-commit.sh"
114100

115-
print_info "Downloading Claude Auto-Commit $version for $platform..."
101+
print_info "Downloading Claude Auto-Commit $version..."
116102

117103
# Create temporary file
118104
local tmp_file=$(mktemp)
119105

120-
# Download binary
106+
# Download script
121107
if ! curl -L -o "$tmp_file" "$url"; then
122-
print_error "Failed to download binary"
108+
print_error "Failed to download script"
123109
rm -f "$tmp_file"
124110
exit 1
125111
fi
@@ -135,7 +121,7 @@ install_binary() {
135121
sudo mv "$tmp_file" "$INSTALL_DIR/$BINARY_NAME"
136122
fi
137123

138-
print_success "Binary installed to $INSTALL_DIR/$BINARY_NAME"
124+
print_success "Script installed to $INSTALL_DIR/$BINARY_NAME"
139125
}
140126

141127
# Create configuration directory
@@ -178,9 +164,9 @@ check_installation() {
178164
echo " $BINARY_NAME --help"
179165
echo " $BINARY_NAME"
180166
echo ""
181-
echo "Documentation: https://claude-auto-commit.0xkaz.com"
167+
echo "Documentation: https://github.com/0xkaz/claude-auto-commit"
182168
else
183-
print_warning "Binary installed but not in PATH"
169+
print_warning "Script installed but not in PATH"
184170
echo "Add $INSTALL_DIR to your PATH or run: export PATH=\"$INSTALL_DIR:\$PATH\""
185171
fi
186172
}
@@ -191,8 +177,9 @@ main() {
191177
echo "================================"
192178
echo ""
193179

180+
check_system
194181
check_dependencies
195-
install_binary
182+
install_script
196183
create_config
197184
check_installation
198185

src/claude-auto-commit.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Claude Auto-Commit - AI-powered Git commit message generator
44
# Version: 0.0.5
5-
# Homepage: https://claude-auto-commit.0xkaz.com
5+
# Repository: https://github.com/0xkaz/claude-auto-commit
66

77
VERSION="0.0.5"
88
REPO="0xkaz/claude-auto-commit"
@@ -163,11 +163,10 @@ check_for_updates() {
163163
fi
164164
}
165165

166-
# Update binary
166+
# Update script
167167
update_binary() {
168168
local new_version="$1"
169-
local platform=$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/amd64/')
170-
local url="https://github.com/$REPO/releases/download/v$new_version/claude-auto-commit-$platform"
169+
local url="https://github.com/$REPO/releases/download/v$new_version/claude-auto-commit.sh"
171170
local current_binary=$(which claude-auto-commit 2>/dev/null || echo "$0")
172171

173172
# 一時ファイルにダウンロード
@@ -304,7 +303,7 @@ while [[ $# -gt 0 ]]; do
304303
;;
305304
--version)
306305
echo "Claude Auto-Commit v$VERSION"
307-
echo "Homepage: https://claude-auto-commit.0xkaz.com"
306+
echo "Repository: https://github.com/0xkaz/claude-auto-commit"
308307
exit 0
309308
;;
310309
-h|--help)

0 commit comments

Comments
 (0)