Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chapter 4 build.bat on windows #55

Open
VhatAmI opened this issue Oct 17, 2017 · 1 comment
Open

Chapter 4 build.bat on windows #55

VhatAmI opened this issue Oct 17, 2017 · 1 comment

Comments

@VhatAmI
Copy link

VhatAmI commented Oct 17, 2017

The batch script has lines like

go build -o ../domainfinder/lib/synonyms
That creates a go binary that can be ran in unix/linux/mac but not windows

when I do go build in the synonyms directory it creates a .exe file, but the script creates a synonyms file in the lib folder that windows can't run.

How can I modify the script so that it outputs .exe files into the lib folder?

@RachidP
Copy link

RachidP commented Jan 10, 2018

I solved it by adding .exe in the script:

#!/bin/bash
echo Building domainfinder...
go build -o domainfinder
echo Building synonyms...
cd ../synonyms
go build -o ../domainfinder/lib/synonyms.exe
echo Building available...
cd ../available
go build -o ../domainfinder/lib/available.exe
echo Building sprinkle...
cd ../sprinkle
go build -o ../domainfinder/lib/sprinkle.exe
echo Building coolify...
cd ../coolify
go build -o ../domainfinder/lib/coolify.exe
echo Building domainify...
cd ../domainify
go build -o ../domainfinder/lib/domainify.exe
echo Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants