-
Notifications
You must be signed in to change notification settings - Fork 1
Building MoonDeploy
This short tutorial is mainly dedicated to Mac OS users, - unfortunately, MoonDeploy binary packages are currently not available for Mac OS only, whereas they are ready for Linux and Windows.
Considering the portable nature of the Go programming language, the required steps are the same for every OS.
- Install the Java Development Kit (required to run Gradle) and:
-
set the JAVA_HOME environment variable to its root directory
-
add its bin subdirectory to the PATH environment variable
-
set the GOROOT environment variable to its root directory
-
add its bin subdirectory to the PATH environment variable
- Install a suitable C compiler, as well as library support for GTK 3. It is definitely an OS-dependent process, which might require you to consult the documentation of your operating system, compiler and libraries
-
Create a directory that will be your Go path (for example, GoPath in your home directory)
-
Assign such dir to the GOPATH environment variable
-
Within GOPATH, create the src/github.com/giancosta86/moondeploy directory subtree
-
Open a terminal within the moondeploy directory
-
Run: git clone "https://github.com/giancosta86/moondeploy.git"
-
Run gradle build. The most critical part will be to build the C libraries - please check the error messages and consult the documentation of your compiler suite
-
If the process completes successfully, you will find a zip file within the build subdirectory: it is the archive containing the binary files for your operating system!
-
Extract the zip file to a directory of your choice, which you should add to the PATH environment variable
After this setup, to run an application packaged with MoonDeploy you should just run:
moondeploy "PATH OF A .moondeploy descriptor"