Skip to content

How to set up custom Greenworks Prebuilds using Travis CLI

TheRealDannyyy edited this page Feb 13, 2020 · 16 revisions

Requirements

1. Preparing Files

  1. GitHub Fork Prebuilds (Keep the name!)
  2. GitHub Fork Greenworks (Any name!)
  3. Clone your Prebuilds Fork locally using GitHub Desktop
  4. Switch to the master branch if required
  5. Open the .travis.yml file using Notepad++
  6. Edit line 63 and replace the URL with your custom Greenworks Fork URL
    (Example: - git clone https://github.com/TheRealDannyyy/Greenworks-Experimental greenworks)
  7. Open the following files in Notepad++:
  • Readme.md [\greenworks-prebuilds]
  • Package.json [\greenworks-prebuilds]
  1. For each file in Notepad++:
    Search > Replace... > Find what: "electronforconstruct" > Replace with: #Your Account Name# (e.g. TheRealDannyyy) > Replace All
  2. Save changes for each file (.travis.yml; Readme.md; Package.json)
  3. OPTIONAL: Update Steamworks files inside the SDK.zip, if required

2. Preparing Travis CI

  1. Activate GitHub Apps Integration for Travis CI
  2. Select your GitHub Greenworks Prebuilds Fork Repository
  3. Navigate to: More Options... > Settings... > Environment Variables
  4. Generate a new token on GitHub with the name GH_TOKEN
  5. Copy the given token value
  6. Add new Environment Variable on Travis CI with the name GH_TOKEN and the given token as the value
  7. Add another Environment Variable with the name ZIP_PASSWORD and the requested password as a value

3. Building With Travis CI

  1. Go to GitHub desktop and commit + push the file changes
  2. Travis CI will now build your prebuilds
  3. Navigate to: More Options... > Settings... > Cron Jobs
  4. Select your branch, interval and always run (this will automatically build the prebuild files)