Skip to content
Documentation menu

Triggering & managing builds

Start a build by hand or on push, follow it live, and keep every run on record.

pkgr.app › Project › Builds

1 in progress

Builds

Every build runs in your GitHub Actions. Open one to follow its logs live, or install a staging build straight on a device.

In the app: Project › Builds

Starting a build

Start a build (from the project's Overview or Builds tab) opens the New build form:

  • Environment: staging to test on your devices, production for the App Store.
  • Branch: any branch of the repository.
  • Platforms: iOS. Android is marked Coming soon.
  • iOS app version (optional): the App Store version number (for example 1.2.0). Leave it empty to keep the one in your Xcode project. The form reminds you of your last iOS build's version.
  • Encryption (production iOS only): check it only if the app uses proprietary or non-standard encryption. Standard HTTPS doesn't count.
  • Environment variables: key/value pairs passed to this build.

The form also shows your GitHub Actions minutes for the current period, since builds run on your own GitHub account.

Automatic builds on push

Set an Auto-trigger branch in the project's settings (Overview tab) to start a staging build on every push to that branch. Leave it empty to turn it off. A new push replaces a build still queued or running for the same branch, so you never wait on a commit you've already superseded.

Build statuses

  1. QueuedWaiting for a GitHub runner
  2. RunningLogs stream live
  3. SuccessReady to install or deploy

Can also end as

  • Failed· see the logs
  • Cancelled· replaced by a newer push

Live logs

A build's page streams its logs while it runs. You can pause the stream, show timestamps, and download the log (partial while the build is still going). View on GitHub opens the underlying Actions run.

GitHub keeps Actions logs for 90 days. Past that, the page tells you the logs are no longer available.

Build history

The Builds tab counts total, succeeded, failed and in-progress builds, and lists every run with how it was triggered (push or manual), its platform, environment, branch, commit and duration. It refreshes on its own while builds are running.

iOS builds support both Swift Package Manager and CocoaPods projects. If your repository already has .github/workflows/pkgr-build.yml and your ios/ folder uses Swift Package Manager, use Reset workflow to default template in the project's Danger zone so the build uses the current workflow.

App icon & splash screen

By default, your builds ship Capacitor's own icon and splash screen. Native icons live in the android/ and ios/ folders of your repository, not in public/, and cap sync only copies your web build into them. Until you generate your own resources and commit them, every build shows the default Capacitor icon.

The official @capacitor/assets tool generates every size for you. It works on any OS, with no Mac or Xcode needed. pkgr.app doesn't generate or replace anything: it builds what is in your repository.

Source images

Put these files in an assets/ folder at the root of your repository, next to package.json:

FileMinimum sizeUsed for
icon-only.png1024×1024 pxThe app icon (iOS and legacy Android)
icon-foreground.png1024×1024 pxAndroid adaptive icon, foreground layer
icon-background.png1024×1024 pxAndroid adaptive icon, background layer
splash.png2732×2732 pxSplash screen
splash-dark.png2732×2732 pxSplash screen in dark mode
  1. Add your images

    Where: Your repository

    Create the assets/ folder with the files above.

  2. Generate the resources

    Where: Terminal

    From the repository root, run:

    npx @capacitor/assets generate
  3. Commit and push

    Where: Git

    Commit the changes made in android/ and ios/, then push them.

  4. Start a new build

    Where: Project › Builds

    pkgr.app now ships your icons and splash screens.

A logo.png (or icon.png) in assets/, plus an optional logo-dark.png, is enough. The tool derives the icon and splash screens from it.

Images in public/ instead of assets/

If your images already live in public/, point the tool at that folder. Keep the file names above:

npx @capacitor/assets generate --assetPath public

Re-run the command whenever you change your icon, then commit the result and start a new build.

Staging vs. production

A successful staging build can be installed on your registered iPhones, see installing staging builds. A successful production build can be sent to TestFlight, see deploying to TestFlight.