From 20dd7ffa4626436635b8b97a1e095edaef81e166 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 3 Feb 2020 00:12:15 +0100 Subject: [PATCH] fix source path in build command --- .drone.star | 2 +- .drone.yml | 4 ++-- README.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.drone.star b/.drone.star index ec91fb4..41bdaed 100644 --- a/.drone.star +++ b/.drone.star @@ -63,7 +63,7 @@ def binaries(arch): 'commands': [ '[ -z "${DRONE_TAG}" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}', 'mkdir -p release/', - "xgo -ldflags \"-X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier-$BUILD_VERSION .", + "xgo -ldflags \"-X main.Version=$BUILD_VERSION\" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser-$BUILD_VERSION ./cmd/url-parser", 'cp /build/* release/' ] }, diff --git a/.drone.yml b/.drone.yml index a2a0a99..5585840 100644 --- a/.drone.yml +++ b/.drone.yml @@ -39,7 +39,7 @@ steps: commands: - "[ -z \"${DRONE_TAG}\" ] && BUILD_VERSION=${DRONE_COMMIT_SHA:0:8} || BUILD_VERSION=${DRONE_TAG##v}" - mkdir -p release/ - - xgo -ldflags "-X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out github-releases-notifier-$BUILD_VERSION . + - xgo -ldflags "-X main.Version=$BUILD_VERSION" -tags netgo -targets 'linux/amd64,linux/arm-6,linux/arm64' -out url-parser-$BUILD_VERSION ./cmd/url-parser - cp /build/* release/ - name: executable @@ -111,6 +111,6 @@ depends_on: --- kind: signature -hmac: fbeb9dcf896d5f5af227722aeecda447c8aeb4bfe83becb2adcc0ca398f52798 +hmac: 3c27762ebfb16c87206081475353f598923952f31bf58defe136a142c4dd0959 ... diff --git a/README.md b/README.md index 09bde31..e5eb95a 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Inspired by [herloct/url-parser](https://github.com/herloct/url-parser), a simpl Prebuild multiarch binaries are availabe for Linux only: ```Shell -curl -L https://github.com/xoxys/url-parser/releases/download/0.1.0-beta4/url-parser-0.1.0-linux-amd64 > /usr/local/bin/url-parser +curl -L https://github.com/xoxys/url-parser/releases/download/v0.1.0/url-parser-0.1.0-linux-amd64 > /usr/local/bin/url-parser chmod +x /usr/local/bin/url-parser url-parser --help ```