Building
If you would like to build swell, yourself, you would need these tools:
- Go 1.5
- godep
- rice
- goxc
- make
Setting it up
grabbing the source code
Either
go get github.com/hako/swell
Or
git clone https://github.com/hako/swell
You must have godep installed on your system. Once you have Go installed on your platform, run the commands in the swell
directory:
godep restore
This will restore swell's dependencies in your Go environment.
go.rice
Once you have Go installed on your platform, run the commands:
go get github.com/GeertJohan/go.rice
go get github.com/GeertJohan/go.rice/rice
goxc
Follow the installation guide for goxc and make sure
the goxc
command works.
Then run make
Testing
Run tests by typing make test
Cross compiling
You must have goxc
to be able to cross compile to Mac and Windows.
To cross compile run make crosscompile-embed
.
This will embed the resources into a single binary for both Mac and Windows thanks to go.rice/rice
.
If you would like to fiddle around with the HTML/CSS resources, I recommend running make crosscompile
so that you don't have to hear your computer scream each time you embed the files in the binary.
Yes you can also cross compile to Linux But Adobe Flash Professional is not supported on Linux. ;_;
However, extra points if you get Swell working on Linux though.