Skip to content

feat: add bash installer script#4

Merged
rymizuki merged 2 commits intomainfrom
feature/install-script
Jan 19, 2026
Merged

feat: add bash installer script#4
rymizuki merged 2 commits intomainfrom
feature/install-script

Conversation

@rymizuki
Copy link
Copy Markdown
Contributor

@rymizuki rymizuki commented Jan 19, 2026

Summary

  • Bash インストーラー (install.sh) を追加
  • アーキテクチャ自動検出(arm64/x64)
  • GitHub から最新リリースをダウンロード
  • quarantine 属性を自動削除(「壊れている」エラーを回避)
  • README にインストール方法を追記

Usage

curl -fsSL https://raw.githubusercontent.com/resila-inc/dev-proxy/main/install.sh | bash

Test plan

  • arm64 Mac でインストールを確認
  • インストール後にアプリが起動することを確認

🤖 Generated with Claude Code

Greptile Summary

Bashインストーラースクリプト (install.sh) を追加し、GitHubの最新リリースから自動的にDMGをダウンロード・インストールする機能を実装しました。

主な変更点:

  • アーキテクチャ(arm64/x64)の自動検出
  • GitHub APIを使用した最新リリースの取得とDMGのダウンロード
  • DMGのマウント、アプリのコピー、quarantine属性の自動削除
  • エラーハンドリングと一時ファイルのクリーンアップ
  • READMEに「Quick Install」セクションを追加し、ワンライナーでのインストール方法を記載

実装は全体的に堅実で、基本的なエラーハンドリングとクリーンアップ処理が含まれています。

Confidence Score: 4/5

  • このPRは大部分において安全にマージ可能です
  • インストーラースクリプトは適切なエラーハンドリングと一時ファイルのクリーンアップを含み、よく設計されています。1つのスタイル改善提案(実行中アプリのチェック)がありますが、機能的には問題ありません
  • 特に注意が必要なファイルはありません

Important Files Changed

Filename Overview
install.sh アーキテクチャ検出とGitHubからのDMGダウンロード・インストールを実装。基本的なエラーハンドリングと一時ファイルのクリーンアップを含む
README.md Quick Installセクションを追加し、手動インストール手順を更新してxattr -crコマンドを含めた

Sequence Diagram

sequenceDiagram
    participant User
    participant InstallScript as install.sh
    participant GitHub as GitHub API
    participant FileSystem as ファイルシステム
    
    User->>InstallScript: curl | bash で実行
    InstallScript->>InstallScript: macOS チェック
    InstallScript->>InstallScript: アーキテクチャ検出 (arm64/x64)
    InstallScript->>GitHub: 最新リリース情報を取得
    GitHub-->>InstallScript: リリースデータ (tag, download URL)
    InstallScript->>InstallScript: DMG URLを抽出
    InstallScript->>FileSystem: 一時ディレクトリ作成
    InstallScript->>GitHub: DMGをダウンロード
    GitHub-->>InstallScript: DMGファイル
    InstallScript->>FileSystem: DMGをマウント
    InstallScript->>FileSystem: 既存アプリを削除(存在する場合)
    InstallScript->>FileSystem: アプリを /Applications にコピー
    InstallScript->>FileSystem: DMGをアンマウント
    InstallScript->>FileSystem: quarantine属性を削除
    InstallScript->>FileSystem: 一時ファイルをクリーンアップ
    InstallScript-->>User: インストール完了メッセージ
Loading

- Add install.sh for one-line installation via curl
- Auto-detects architecture (arm64/x64)
- Downloads latest release from GitHub
- Removes quarantine attribute automatically
- Update README with new installation instructions

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Copy Markdown

@greptile-apps greptile-apps Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment thread install.sh
Add check to quit running app before installation to prevent
unexpected behavior or crashes during upgrade.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rymizuki rymizuki merged commit f07bc37 into main Jan 19, 2026
4 checks passed
@rymizuki rymizuki deleted the feature/install-script branch January 19, 2026 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant