Giter VIP home page Giter VIP logo

godot-build-cli-go's Introduction

I no longer update this project! Please consider something else which suits your needs

Godot Build CLI

Go Reference Travis

Prerequisites

Command for installing all requirements on Raspberry Pi OS

sudo apt-get install build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev yasm clang

If you use this command you can skip over the link below. However this is only if you are installing on Pi OS. If you are using any other distro follow the link instead as well as adding clang on the end.

In order to use the build CLI at all, you should install the dependencies for compiling godot here

IMPORTANT NOTICE!!

If you see an error like this,

scons: building terminated because of errors.
sh: 1: clang++: not found

You don't have clang installed! Install it using your package manager before opening an issue

Also if your OS is not in this list, consider it useless for now. However downloading should work no matter the OS.

linux/amd64
linux/arm
linux/arm64

Want to add support for more OSes? Make an issue or a PR and i'll address it in a later update

Installation

If you have go installed you can use this one liner.

$ go install github.com/irishgreencitrus/godot-build-cli-go@latest

Then you can run the tool with

$ ~/go/bin/godot-build-cli-go

Add gopath to your path to run it with godot-build-cli-go

If you don't have go installed you can fetch the latest release from the releases page, but I recommend using the method above!

Usage

An important change!

In the last commit you could only build/download/move one version or all of them. In the latest commit you can now build any permutation of versions using this guide. One means download/build/move that version and zero means don't

Version Guide

3.3.1-stable  - 1
3.3-stable    - 1
3.2.3-stable  - 1
3.2.2-stable  - 1
3.2.1-stable  - 1
3.2-stable    - 1
3.1.2-stable  - 1
3.1.1-stable  - 1
3.1-stable    - 1

111111111 in decimal is 511 - so to build every version you need to put the flag 511. Bits are in this order! That means read from top to bottom. Here's a guide for types

Type Guide

editor    - 1
export    - 1
headless  - 0
server    - 1

So to build every type of binary except headless just use the flag -type 13 as 1101 in decimal is 13.

Help and common usage

$ ./godot-build-cli-go -h
Usage of ./godot-build-cli-go:
  -P	Prints available platforms
  -T	Prints possible types
  -V	Prints available versions
  -Z	Removes version zip files
  -build int
    	Builds specified version
  -download int
    	Downloads specified version
  -move int
    	Moves specified builds to an easier to access location
  -type int
    	Chooses the type to build (default 1)

Example of downloading every version supported building it moving the binaries and removing the zips

$ ./go-build-cli-go -download 511 -build 511 -Z -move all

Example of listing the versions

$ ./go-build-cli-go -V

Example of downloading and building 3.1-stable

$ ./go-build-cli-go -download 1 -build 1

Not enough info? Open an issue asking what you want to be documented, or a feature request

godot-build-cli-go's People

Contributors

irishgreencitrus avatar dependabot[bot] 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.