-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
121 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ jobs: | |
strategy: | ||
matrix: | ||
# Include amd64 on all platforms. | ||
goos: [windows, freebsd, openbsd, linux, dragonfly, darwin] | ||
goos: [console, freebsd, openbsd, linux, dragonfly, darwin] | ||
goarch: [amd64, 386] | ||
exclude: | ||
# Exclude i386 on darwin and dragonfly. | ||
|
@@ -30,7 +30,7 @@ jobs: | |
goarm: 5 | ||
# END Linux ARM 5 6 7 | ||
# Windows ARM 7 | ||
- goos: windows | ||
- goos: console | ||
goarch: arm | ||
goarm: 7 | ||
# BEGIN Other architectures | ||
|
@@ -71,24 +71,21 @@ jobs: | |
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ^1.16.4 | ||
|
||
- name: Handle for Non-Windows Build | ||
if: ${{ env.GOOS != 'windows' }} | ||
run: yes | cp ./windows/kernel32.go.nonwindows ./windows/kernel32.go | ||
|
||
- name: Build | ||
run: go build -v -o ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }} | ||
|
||
- name: Handle for Windows Build | ||
if: ${{ env.GOOS == 'windows' }} | ||
run: mv ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }} ZBLite-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }}.exe | ||
|
||
- name: Upload a Non-Windows Build Artifact | ||
uses: actions/[email protected] | ||
if: ${{ env.GOOS != 'windows' }} | ||
with: | ||
name: ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }} | ||
path: ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }} | ||
|
||
- name: Upload a Windows Build Artifact | ||
uses: actions/[email protected] | ||
if: ${{ env.GOOS == 'windows' }} | ||
with: | ||
name: ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }}.exe | ||
path: ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }} | ||
path: ZBProxy-${{ matrix.goos }}-${{ matrix.goarch }}-${{ matrix.goarm }}.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !windows | ||
// +build !windows | ||
|
||
package console | ||
|
||
import "fmt" | ||
|
||
func SetTitle(title string) { | ||
fmt.Printf("\033]0;%s\007", title) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
package windows | ||
//go:build windows | ||
// +build windows | ||
|
||
package console | ||
|
||
import ( | ||
"syscall" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.