Skip to content

Instantly share code, notes, and snippets.

@rBurgett
Created December 6, 2021 21:59
Show Gist options
  • Save rBurgett/021defeeb54ab14b9d39ed12796447a5 to your computer and use it in GitHub Desktop.
Save rBurgett/021defeeb54ab14b9d39ed12796447a5 to your computer and use it in GitHub Desktop.
XLite macOS Publish Native Build Procedure
  1. Install git.
  2. Install Node.js v14.
  3. Change npm's default global directory in order to avoid having to run global installs with sudo.
  4. Install Docker.
  5. Clone the repo: git clone https://github.com/blocknetdx/xlite.git
  6. Open the directory: cd xlite
  7. Checkout the appropriate branch e.g. git checkout dev.
  8. Install dependencies: npm install
  9. Run build script: npm run build
  10. Set GH_TOKEN environment variable to a GitHub Token with appropriate permissions for creating releases and pushing release builds.
  11. Set CSC_LINK environment variable to the path to the signing cert e.g. /Users/myuser/Documents/blocknet/certs/blocknet.p12
  12. Set CSC_KEY_PASSWORD environment variable to the signing cert decryption password.
  13. Set CSC_IDENTITY_AUTO_DISCOVERY environment variable to false.
  14. Run build & publish script: npm run publish-native-mac
  15. Find the draft release with the packaged build in releases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment