Git Product home page Git Product logo

docker-godot-export's Introduction

Godot Export

This repository contains tools and scripts to export your Godot games. We provide configuration templates for two continuous integration services (TravisCI and AppVeyor). Both can be used to automatically export your games whenever you push or create a tag in your GitHub repositories. You can also use the provided Docker image by itself.

Dockerfile

Use this Dockerfile to automatically export your game. Choose the Godot version you want to use as the Docker image tag (e.g., 3.0.2 as shown below). Supported Godot versions can be found here. If your version is not available, please open an issue in this repository. Make sure that you have created an export_presets.cfg file with all necessary export templates as described in the Godot documentation.

Set EXPORT_NAME to your template's name and OUTPUT_FILENAME accordingly. Add two volumes, one from your repository to /build/src and another to /build/output where the product will be stored.

E.g. inside your game's main folder (find the product in /tmp/output):

docker run \
	-e EXPORT_NAME="HTML5" \
	-e OUTPUT_FILENAME="index.html" \
	-v $(pwd):/build/src -v /tmp/output:/build/output gamedrivendesign/godot-export:3.0.2

Travis Integration

We provide a fairly well documented template .travis.yml file for you to copy into your own repository. The build is using the docker image also provided in here. The TravisCI configuration supports:

  1. Exporting the Linux/Windows/Mac versions of the game whenever a git tag is created and adding them to the GitHub Releases.
  2. Exporting the HTML5 version of the game and pushing it to GitHub Pages.

AppVeyor Integration

We provide a fairly well documented template appveyor.yml file for you to copy into your own repository. The AppVeyor configuration supports:

  1. Exporting the Linux/Windows/Mac versions of the game whenever a git tag is created and adding them to the GitHub Releases.

It does not support pushing to GitHub Pages.

Contributing

If you have any issues, comments or improvements, feel free to open a pull request or an issue!

docker-godot-export's People

Contributors

breadp4ck avatar cmfcmf avatar tom95 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

docker-godot-export's Issues

Godot 3.2.2?

I can't see the tag on Docker Hub.

I'm not sure what's been added in 3.2.2 that's made it better than 3.2.1, so I'll go ahead and use that, and I suppose I'll be back if I've got problems? ๐Ÿคž.

Build hangs after export.

When running the build on travis, it seems to stop working after it exports all the scenes. The build doesn't fail for another 10 or so minutes, when the timer runs out. The export works fine locally on my windows 10 machine.

image

I had noticed that the version used was 3.0.2, and I was running 3.0.6, so I in my own docker switched to that version in headless format (since that apparently has all the editor tools), where the issue persists. Another change was the signing key to glibc, its URL was changed.

I tried it again, this time using the server version, but it appears to not produce any file:
image

This is the first time I've done any sort of CI, so I'm a little lost on what I'm doing wrong, any help would be much appreciated.

My own Dockerfile: https://github.com/kiesenverseist/docker-godot-export/blob/develop/Dockerfile
The travis.yml: https://github.com/kiesenverseist/equilibria/blob/master/.travis.yml

Where/how to indicate the Godot project root directory?

Giving this a stab, very cool!

But, my godot project's root is in a directory, not at the github repo's root, and I'm not familiar enough with docker volumes to fix it:

Setting environment variables from .travis.yml
$ export GAME_NAME="Panjwayi"
rvm
0.58s$ rvm use default
ruby.versions
$ ruby --version
install
23.64s$ docker pull gamedrivendesign/godot-export
$ docker run -e EXPORT_NAME="HTML5"           -e OUTPUT_FILENAME="index.html"           -v $(pwd)/panjwayi:/build/src -v $(pwd)/output/html5:/build/output   gamedrivendesign/godot-export
ERROR: _load_data: Condition "!f" is true. Returned: ERR_CANT_OPEN
   At: scene/resources/texture.cpp:502.
ERROR: _load: Condition "found" is true. Returned: RES()
   At: core/io/resource_loader.cpp:278.

Here's my repo, with all the godot source in the panjwai directory:
https://github.com/Weingardt-Games/panjwayi

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.