Install Codewind on MacOS or Windows.
- Download the release binary file to a folder on your system.
- Use the
cd
command to go to the location of the downloaded file in the Terminal window. - If the binary file has the extension
.dms
, remove the extension so that the file is namedmac-installer
. - Enter the
chmod 775 installer
command to give yourself access rights to run the binary file on your system. - If you already have a
codewind-workspace
with your projects in it, copy it into your/Users/<username>
home directory. If you do not already have a workspace, the installer creates an empty workspace for you in this directory. - Type
./mac-installer
in the Terminal window with the exported environment variables to run the installer. - To run a command, enter
./mac-installer <command>
.
- Download the release binary file to a folder on your system.
- Use the
cd
command to go to the location of the downloaded file in the command prompt. - Ensure that the binary file has an
.exe
extension. If it doesn't, add the extension to the file name. - If you already have a
codewind-workspace
with your projects in it, copy it into yourC:\
directory. If you do not already have a workspace, the installer creates an empty one for you in this directory. - To get started and see the commands available, type the
.\win-installer.exe
command in the command prompt with the exported environment variables. - To run a command, enter
.\win-installer.exe <command>
.
- Ensure that you have a Go environment set up. If you don't yet have a Go environment, see Install Go for NATS.
- If you have Brew, use the following commands to install
dep
for MacOS:
$ brew install dep
$ brew upgrade dep
- Clone the
git clone https://github.com/eclipse/codewind-installer.git
repo. - Use the
cd
command to go into the project directory and install the vendor packages with thedep ensure -v
command. - Build the binary and give it a name with the
go build -o <binary-name>
command. To build a binary without the debug symbols use the commandgo build -ldflags="-s -w" -o <binary-name>
. - Copy your Codewind workspace into your
/Users/<username>
home directory. - Type
./<binary-name>
in the Terminal window with the exported environment varibles to run the installer. - To run a command, enter
./<binary-name> <command>
.
- Use the
go tool dist list
command to get a list of the possibleGOOS/ARCH
combinations available to build. - Choose the
GOOS/ARCH
that you want to build for and then enterGOOS=<OS> GOARCH=<ARCH> go build
to create the binary. To build a binary without the debug symbols use the commandGOOS=<OS> GOARCH=<ARCH> go build -ldflags="-s -w"
.
- Clone this repository.
- Use the
cd
command to go to the test directory. Theutils.go
tests are located in theutils/utils_test.go
file. - To run the tests, type the
go test -v
command in the terminal window and wait for the tests to finish. - For any other unit tests, the same steps apply, but the directory might change.
Submit issues and contributions: