Skip to content

Commit edaedec

Browse files
committed
Updated gitignore, README and binary names
1 parent 8395bd4 commit edaedec

File tree

3 files changed

+13
-36
lines changed

3 files changed

+13
-36
lines changed

.gitignore

+2-19
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
1-
# Binaries for programs and plugins
2-
*.exe
3-
*.exe~
4-
*.dll
5-
*.so
6-
*.dylib
7-
8-
9-
# Test binary, built with `go test -c`
10-
*.test
11-
12-
# Output of the go coverage tool, specifically when used with LiteIDE
13-
*.out
14-
15-
# Dependency directories (remove the comment below to include it)
16-
# vendor/
17-
18-
19-
1+
out
2+
.*.swp
203
*.ps1
214
dist/*
225
testing/*

README.md

+9-15
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,23 @@
33
Packages MacOS, Linux and Windows binaries, into a single script that
44
is executable everywhere and executes the correct binary for the system.
55

6+
## Building
67

7-
8-
9-
# Building
10-
11-
## Requirements
8+
**Requirements:**
129
- Golang
1310

1411
Running build.sh will cross compile for all 3 major OS's and output to dist/
1512

13+
## Usage
1614

17-
# Usage
18-
19-
Supply it with pre compiled binaries for whichever platform you wish to run on
15+
Supply it with pre compiled binaries for whichever platform you wish to run on:
2016

21-
./CrossBin -w path_to_windows_binary -l path_to_linux_binary -m path_to_macos_binary -o output_file
17+
```sh
18+
./CrossBin -w path_to_windows_binary -l path_to_linux_binary -m path_to_macos_binary -o output_file
19+
```
2220

2321
Default output file is CrossBin.ps1
2422

23+
## Major contributors
2524

26-
27-
28-
29-
# Major contributors
30-
31-
## [@aJuvan](https://github.com/aJuvan) Helped with the development of the CrossShell script and added MacOs support.
25+
## [@aJuvan](https://github.com/aJuvan) Helped with the development of the CrossShell script and added MacOS support.

build.sh

100644100755
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh
22

33
echo "Building for linux"
4-
env GOOS=linux GOARCH=amd64 go build -o dist/CrossBin.bin
4+
env GOOS=linux GOARCH=amd64 go build -o dist/CrossBin_linux
55
echo "Building for windows"
66
env GOOS=windows GOARCH=amd64 go build -o dist/CrossBin.exe
77
echo "Building for MacOS"
8-
env GOOS=darwin GOARCH=amd64 go build -o dist/CrossBin.dmg
8+
env GOOS=darwin GOARCH=amd64 go build -o dist/CrossBin_osx
99

1010

0 commit comments

Comments
 (0)