| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 1 年前 | ||
| 1 年前 |
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
- Guides you through certificate export: Provides step-by-step instructions to export your Developer ID Application certificate from Keychain Access
- Encodes certificates: Converts your .p12 certificate file to base64 format required for GitHub Secrets
- Generates secret values: Provides the exact values you need to add as GitHub repository secrets
- 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 certificateP12_PASSWORD: Certificate passwordBUILD_PROVISION_PROFILE_BASE64: Base64-encoded provisioning profile (optional)
Adding Secrets to GitHub
- Go to your GitHub repository
- Navigate to Settings > Secrets and variables > Actions
- Click "New repository secret"
- 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)