diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 1d161e9..1d55e26 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -7,3 +7,5 @@ archives: - format: binary name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}" files: [] + builds_info: + mode: 0777 diff --git a/README.md b/README.md index fa766f3..4429292 100644 --- a/README.md +++ b/README.md @@ -53,25 +53,25 @@ Download the KPM executable from the [Releases](https://github.com/rohitramu/kpm #### Using `wget` on Linux ```sh -wget -P /usr/bin -O kpm "https://github.com/rohitramu/kpm/releases/latest/kpm_${os}_${arch}" +wget -P /usr/bin -O kpm "https://github.com/rohitramu/kpm/releases/latest/download/kpm_${os}_${arch}" ``` For example, if `os=linux` and `arch=amd64`: ```sh -wget -P /usr/bin -O kpm "https://github.com/rohitramu/kpm/releases/latest/kpm_linux_amd64" +wget -P /usr/bin -O kpm "https://github.com/rohitramu/kpm/releases/latest/download/kpm_linux_amd64" ``` #### Using PowerShell on Windows ```powershell -Invoke-WebRequest -OutFile "${Env:ProgramFiles}/kpm.exe" "https://github.com/rohitramu/kpm/releases/latest/kpm_${os}_${arch}.exe" +Invoke-WebRequest -OutFile "${Env:ProgramFiles}/kpm.exe" "https://github.com/rohitramu/kpm/releases/latest/download/kpm_${os}_${arch}.exe" ``` For example, if `os=windows` and `arch=amd64`: ```powershell -Invoke-WebRequest -OutFile "${Env:ProgramFiles}/kpm.exe" "https://github.com/rohitramu/kpm/releases/latest/kpm_windows_amd64.exe" +Invoke-WebRequest -OutFile "${Env:ProgramFiles}/kpm.exe" "https://github.com/rohitramu/kpm/releases/latest/download/kpm_windows_amd64.exe" ``` ### Command line usage