File tree 3 files changed +13
-36
lines changed
3 files changed +13
-36
lines changed Original file line number Diff line number Diff line change 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
20
3
* .ps1
21
4
dist /*
22
5
testing /*
Original file line number Diff line number Diff line change 3
3
Packages MacOS, Linux and Windows binaries, into a single script that
4
4
is executable everywhere and executes the correct binary for the system.
5
5
6
+ ## Building
6
7
7
-
8
-
9
- # Building
10
-
11
- ## Requirements
8
+ ** Requirements:**
12
9
- Golang
13
10
14
11
Running build.sh will cross compile for all 3 major OS's and output to dist/
15
12
13
+ ## Usage
16
14
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:
20
16
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
+ ```
22
20
23
21
Default output file is CrossBin.ps1
24
22
23
+ ## Major contributors
25
24
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.
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
3
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
5
5
echo " Building for windows"
6
6
env GOOS=windows GOARCH=amd64 go build -o dist/CrossBin.exe
7
7
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
9
9
10
10
You can’t perform that action at this time.
0 commit comments