Files
TrackWeight/scripts
059591f7cd Add build pipeline for both signed and unsigned builds. (#29)
* Initial plan

* Add comprehensive DMG build and signing pipeline with attribution

Co-authored-by: Rohithzr <1592554+Rohithzr@users.noreply.github.com>

* Update pipeline to build on current working branch for testing

Co-authored-by: Rohithzr <1592554+Rohithzr@users.noreply.github.com>

* Add unsigned DMG build pipeline for testing without certificates

Co-authored-by: Rohithzr <1592554+Rohithzr@users.noreply.github.com>

* add team id

* Fix missing backslash in xcodebuild archive command

Co-authored-by: Rohithzr <1592554+Rohithzr@users.noreply.github.com>

* Use DEVELOPMENT_TEAM from repository secrets instead of hardcoded value

Co-authored-by: Rohithzr <1592554+Rohithzr@users.noreply.github.com>

* fix pipeline manually

* fix mount perms

* fix mount perms in signed build file

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Rohithzr <1592554+Rohithzr@users.noreply.github.com>
2025-07-25 03:53:30 -04:00
..

Scripts

This directory contains helper scripts for the TrackWeight project.

setup-signing.sh

A helper script to set up code signing certificates for automated DMG builds.

Usage

./scripts/setup-signing.sh

What it does

  1. Guides you through certificate export: Provides step-by-step instructions to export your Developer ID Application certificate from Keychain Access
  2. Encodes certificates: Converts your .p12 certificate file to base64 format required for GitHub Secrets
  3. Generates secret values: Provides the exact values you need to add as GitHub repository secrets
  4. Optional provisioning profile: Handles provisioning profile encoding if needed

Prerequisites

  • macOS (required for Keychain Access and signing tools)
  • Valid Apple Developer ID Application certificate
  • Access to GitHub repository settings to add secrets

Output

The script will generate the values for these GitHub repository secrets:

  • BUILD_CERTIFICATE_BASE64: Base64-encoded .p12 certificate
  • P12_PASSWORD: Certificate password
  • BUILD_PROVISION_PROFILE_BASE64: Base64-encoded provisioning profile (optional)

Adding Secrets to GitHub

  1. Go to your GitHub repository
  2. Navigate to Settings > Secrets and variables > Actions
  3. Click "New repository secret"
  4. Add each secret with the name and value provided by the script

Attribution

This script is part of the enhanced TrackWeight fork that adds automated build pipelines.

Original TrackWeight project: https://github.com/KrishKrosh/TrackWeight
Created by: Krish Shah (@KrishKrosh)