Skip to content

Commit

Permalink
Stop building 32-bit binaries for releases due to low usage [ci skip]
Browse files Browse the repository at this point in the history
32-bit operating systems are used by approximately 0% of people, for example:

 1. PC Benchmarks reports about 0.29% of usage: https://www.pcbenchmarks.net/os-marketshare.html
 2. Steam report doesn't include 32-bit systems at all: https://store.steampowered.com/hwsurvey/ (however, this is about gaming PCs)

So, it seems reasonable to stop building executables for x86 and get smaller packages instead.
  • Loading branch information
Envek committed Jun 2, 2021
1 parent aa26a08 commit 70f6b51
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ builds:
- windows
goarch:
- amd64
- "386"
- arm64
archives:
- id: lefthook
Expand All @@ -22,7 +21,6 @@ archives:
windows: Windows
darwin: MacOS
linux: Linux
386: i386
amd64: x86_64
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
Expand Down
5 changes: 0 additions & 5 deletions .npm/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ function getDownloadURL() {
arch = "x86_64"
break
}
case "x32":
case "ia32": {
arch = "i386"
break
}
}
const version = require("./package.json").version

Expand Down
3 changes: 1 addition & 2 deletions .npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@
],
"cpu": [
"x64",
"arm64",
"ia32"
"arm64"
],
"scripts": {
"install": "node install.js"
Expand Down
1 change: 0 additions & 1 deletion .rubygems/bin/lefthook
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ arch =
when /\Aarm64/ then "arm64" # Apple reports arm64e on M1 macs
when "x86_64" then "amd64"
when "x64" then "amd64" # Windows with MINGW64 reports RUBY_PLATFORM as "x64-mingw32"
when "x86" then "386"
else raise "Unknown architecture: #{platform.cpu}"
end

Expand Down

0 comments on commit 70f6b51

Please sign in to comment.