Overview

This document shows how to upload App building resources using FHC.

Uploading

Uploading resources is done using the fhc account command. This command has 2 ways of uploading resources - individually or as a batch upload. For general help on this command, use:

fhc help account

Individual Resources

The form of the command for uploading a single file is:

fhc account upload-resource <destination> <file-path> <res-type> [<config>]

Example 1: Upload an iOS Distribution certificate

fhc account upload-resource iphone /home/user/dist.cer certificate distribution

Example 2: Upload an Android private key

fhc account upload-resource android /home/user/key.pem privatekey

Example 3: Upload a Blackberry code signing key

fhc account upload-resource blackberry /home/user/sigtook.csk csk

Batch Upload

If you have resources for multiple platforms, it may be easier to use the batch upload version of the command. Before calling the command, a strict directory structure must be followed and resources placed in the relevant folder:

  • resources/
    • iphone/
      • debug/
        • developer.certificate
        • developer.privatekey
      • distribution/
        • distribution.certificate
        • distribution.privatekey
    • android/
      • developer.certificate
      • developer.privatekey
    • blackberry/
      • sigtool.csk
      • sigtool.db

The file extension is important for FHC to pick up what file type is being uploaded. To upload resources in this folder structure, the following command and arguments can be used:

fhc account upload-resources-batch <destination> <res-dir>

Example 1: Upload all resources found in a directory

fhc account upload-resources-batch all ~/resources

Example 2: Only Upload resources in the iphone folder

fhc account upload-resources-batch iphone ~/resources