LoginSignup
40
39

More than 5 years have passed since last update.

shenzhenがDeployGateに対応したので使ってみた

Last updated at Posted at 2014-05-14

あ…ありのまま 先日 起こった事を話すぜ!
空いた時間を使ってshenzhenをforkしてDeployGate対応をしようかなーと作業を始めた瞬間、既にプルリクエストが飛んでいて数日後にマージされていた…
今どきの新卒の優秀さの片鱗を 味わったぜ…

というわけで、へんてこさんによって、ipaファイル作成/配信サポートツールのshenzhenDeployGate対応されました。
素晴らしい!
早速使ってみました。

shenzhenのインストール/ipaファイルの作り方

こちらを参照

DeployGateで配信する方法

ipaコマンドをオプション無しで実行すると、ヘルプがずらずらーと出てきます。

$ ipa
  ipa

  Build and distribute iOS apps (.ipa files)

  Commands:
    build                Create a new .ipa file for your app
    distribute:deploygate Distribute an .ipa file over deploygate
    distribute:ftp       Distribute an .ipa file over FTP
    distribute:hockeyapp Distribute an .ipa file over HockeyApp
    distribute:s3        Distribute an .ipa file over Amazon S3
    distribute:testflight Distribute an .ipa file over testflight
    help                 Display global or [command] help documentation.
    info                 Show mobile provisioning information about an .ipa file

  Aliases:
    distribute           distribute:testflight
    distribute:sftp      distribute:ftp --protocol sftp

  Global Options:
    --verbose
    -h, --help           Display help documentation
    -v, --version        Display version information
    -t, --trace          Display backtrace when an error occurs

  Author:
    Mattt Thompson <m@mattt.me>

  Website:
    http://mattt.me

distribute:deploygateがありますね。
さらに、distribute:deploygateのヘルプを見てみましょう

$ ipa distribute:deploygate --help

  distribute:deploygate

  Usage: ipa distribute:deploygate [options]



  Options:
    -f, --file FILE      .ipa file for the build
    -a, --api_token TOKEN API Token. Available at https://deploygate.com/settings
    -u, --user_name USER_NAME User Name. Available at https://deploygate.com/settings
    -m, --message MESSAGE Release message for the build

こんな感じです。
では、実際に配信してみましょう。

$ ipa distribute:deploygate -a xxxxxxxxxxxxxxxxxxxxxxxxxxxxx -u k_kinukawa -f sample.ipa
Build successfully uploaded to DeployGate

-a にAPI keyを、-u にユーザー名を指定します。
API keyもユーザー名も、https://deploygate.com/settings から確認できます。
-f でipaファイルを指定します。

ちなみに、オプションを付けずにipa distribute:deploygateをすると、コマンドラインで必要な項目を尋ねられます。

$ ipa distribute:deploygate
API Token:
xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
User Name:
k_kinukawa
Build successfully uploaded to DeployGate

簡単ですね!!
個人的に、shenzhenは無くてはならないツールなのですが、DeployGate対応されたことによってより離れられない関係になりました。
shenzhenDeployGateを使って、この夏はお手軽配信環境を構築してエンジョイしてみましょう。

40
39
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
40
39