Code Monkey home page Code Monkey logo

estranged.build's Introduction

Estranged.Build

Jenkins tooling for the Estranged build:

  • Estranged.Build.Notarizer - Completely automates the macOS codesign and Notarization process for an app bundle
  • Estranged.Build.Symbols - Extracts symbols with symstore and uploads them to Amazon S3, so that they can be served for Visual Studio and other debugging tools

Estranged.Build.Notarizer

Completely automates the macOS codesign and Notarization process for an app bundle.

Requirements

  • At least .NET Core 2.1 SDK
  • A Mac running macOS with Xcode
  • The codesign and xcrun commands available on the $PATH
  • A valid Apple Developer account with an application password
  • A Developer ID certificate available in the keychain certificate store of the macOS installation

Example Usage

Example usage with an Unreal Engine 4 packaged game:

dotnet run --project "depot/Tools/Estranged.Build.Notarizer"
           --appPath "Path/To/My/AppBundle.app"
           --certificateId "My Certificate ID"
           --entitlements "AppBundle.app=com.apple.security.cs.allow-dyld-environment-variables"
           --developerUsername $USERNAME --developerPassword $PASSWORD

This process will:

  1. Recursively sign each library and binary in your app bundle
  2. Sign the app bundle itself
  3. Put all binaries into a separate zip folder for notarization
  4. Submit the zip folder for notarization
  5. Wait for the notarization process to complete
  6. Staple the result of the notarization process to the app bundle

To specify multiple entitlements for the bundle, use a semicolon:

--entitlements "AppBundle.app=com.apple.security.cs.allow-dyld-environment-variables;com.apple.security.app-sandbox"

Estranged.Build.Symbols

Extracts symbols with symstore and uploads them to Amazon S3, so that they can be served for Visual Studio and other debugging tools.

Requirements

  • A pre-built Windows executable with .pdb symbol files
  • At least .NET Core 2.1 SDK
  • The Windows SDK

Example Usage

Example usage with an Unreal Engine 4 packaged game:

dotnet run --project "Depot\\Tools\\Estranged.Build.Symbols"
           --bucket my-bucket
           --symbols "Path\\To\\Binaries\\Win64"
           --symstore "C:\\Program Files (x86)\\Windows Kits\\10\\Debuggers\\x86\\symstore.exe"
           --properties:BUILD_LABEL "my build label"

Your build environment should set up the appropriate AWS credentials and region. This can be specified using the withCredentials helper in Jenkins Pipelines:

env.AWS_REGION = 'us-east-1'
withCredentials([[$class: 'AmazonWebServicesCredentialsBinding', credentialsId: '<my credential>']]) {
    // dotnet run ...
}

estranged.build's People

Contributors

alanedwardes avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.