godot-build-cli-go

command module
v2.0.1-0...-9030950 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 9 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL