fix: windows exe path.

This commit is contained in:
Bo-Yi Wu 2018-03-12 16:38:18 +08:00
parent 023c255fe1
commit c959b6ff2d
3 changed files with 3 additions and 4 deletions

View File

@ -24,10 +24,10 @@ install:
build_script: build_script:
- ps: | - ps: |
if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) { if ( $env:APPVEYOR_REPO_TAG -eq 'false' ) {
go build -ldflags "-X main.Version=$env:APPVEYOR_REPO_COMMIT -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o gorush.exe go build -ldflags "-X main.Version=$env:APPVEYOR_REPO_COMMIT -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o release/gorush.exe
} else { } else {
$version = $env:APPVEYOR_REPO_TAG_NAME $version = $env:APPVEYOR_REPO_TAG_NAME
go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o gorush.exe go build -ldflags "-X main.Version=$version -X main.BuildNum=$env:APPVEYOR_BUILD_VERSION" -a -o release/gorush.exe
} }
dir dir
docker pull microsoft/nanoserver:10.0.14393.1884 docker pull microsoft/nanoserver:10.0.14393.1884

View File

@ -1,4 +1,3 @@
* *
!config/ !config/
!release/ !release/
gorush.exe

View File

@ -6,5 +6,5 @@ LABEL maintainer="Bo-Yi Wu <appleboy.tw@gmail.com>" \
org.label-schema.vendor="Bo-Yi Wu" \ org.label-schema.vendor="Bo-Yi Wu" \
org.label-schema.schema-version="1.0" org.label-schema.schema-version="1.0"
ADD gorush.exe c:\gorush.exe ADD release/gorush.exe c:\gorush.exe
ENTRYPOINT [ "c:\\gorush.exe" ] ENTRYPOINT [ "c:\\gorush.exe" ]