Skip to content

Commit 952349c

Browse files
committed
Drop 32-bit ARM
1 parent b65432a commit 952349c

File tree

9 files changed

+10
-28
lines changed

9 files changed

+10
-28
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -338,8 +338,6 @@ jobs:
338338
sed -i "s/\[\[X86_64_SHA256\]\]/$x86_64_sha256/" $PKGBUILD_FILE
339339
aarch64_sha256=$(sha256sum artifacts/**/*-arm64.deb | awk '{ print $1 }')
340340
sed -i "s/\[\[AARCH64_SHA256\]\]/$aarch64_sha256/" $PKGBUILD_FILE
341-
armv7h_sha256=$(sha256sum artifacts/**/*-armhf.deb | awk '{ print $1 }')
342-
sed -i "s/\[\[ARMV7H_SHA256\]\]/$armv7h_sha256/" $PKGBUILD_FILE
343341
done
344342
345343
- name: Publish AUR package github-desktop-plus-bin

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,9 @@ chmod +x GitHub-Desktop-Plus-*-linux-*.AppImage
135135
# Just double-click the file to run it
136136
```
137137

138-
| **64-bit x86** | **64-bit ARM** | **32-bit ARM** |
139-
| --- | --- | --- |
140-
| `-linux-x86_64.AppImage` | `-linux-arm64.AppImage` | `-linux-armv7l.AppImage` |
138+
| **64-bit x86** | **64-bit ARM** |
139+
| --- | --- |
140+
| `-linux-x86_64.AppImage` | `-linux-arm64.AppImage` |
141141

142142
</details>
143143

publish/aur/PKGBUILD-bin.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ pkgname="${_pkgname}-bin"
88
pkgver=[[VERSION_WITHOUT_V]]
99
pkgrel=1
1010
pkgdesc="Fork of GitHub Desktop with extra features and improvements (binary release)."
11-
arch=('x86_64' 'aarch64' 'armv7h')
11+
arch=('x86_64' 'aarch64')
1212
url="https://github.com/pol-rivero/github-desktop-plus"
1313
license=('MIT')
1414
provides=(${_pkgname})
@@ -33,15 +33,13 @@ source=(
3333
_common_download_url="${url}/releases/download/v${pkgver}/GitHubDesktopPlus-v${pkgver}-linux"
3434
source_x86_64=(${_common_download_url}-x86_64.deb)
3535
source_aarch64=(${_common_download_url}-arm64.deb)
36-
source_armv7h=(${_common_download_url}-armhf.deb)
3736

3837
sha256sums=(
3938
'[[DESKTOP_FILE_SHA256]]'
4039
'[[LAUNCH_SCRIPT_SHA256]]'
4140
)
4241
sha256sums_x86_64=('[[X86_64_SHA256]]')
4342
sha256sums_aarch64=('[[AARCH64_SHA256]]')
44-
sha256sums_armv7h=('[[ARMV7H_SHA256]]')
4543
package() {
4644
INSTALL_DIR="$pkgdir/opt/${_pkgname}"
4745

publish/aur/PKGBUILD-git.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pkgname="${_pkgname}-git"
1010
pkgver=0
1111
pkgrel=1
1212
pkgdesc="Fork of GitHub Desktop with extra features and improvements (git version)."
13-
arch=('x86_64' 'aarch64' 'armv7h')
13+
arch=('x86_64' 'aarch64')
1414
url="https://github.com/pol-rivero/github-desktop-plus"
1515
license=('MIT')
1616
provides=(${_pkgname})
@@ -77,7 +77,6 @@ package() {
7777
case "$CARCH" in
7878
x86_64) suffix="x64" ;;
7979
aarch64) suffix="arm64" ;;
80-
armv7h) suffix="armv7l" ;;
8180
*) echo "Unsupported architecture: $CARCH"; exit 1 ;;
8281
esac
8382
cp -r --preserve=mode "dist/github-desktop-plus-linux-$suffix/"* "$INSTALL_DIR/"

publish/aur/PKGBUILD.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ pkgname=github-desktop-plus
99
pkgver=[[VERSION_WITHOUT_V]]
1010
pkgrel=1
1111
pkgdesc="Fork of GitHub Desktop with extra features and improvements."
12-
arch=('x86_64' 'aarch64' 'armv7h')
12+
arch=('x86_64' 'aarch64')
1313
url="https://github.com/pol-rivero/github-desktop-plus"
1414
license=('MIT')
1515
provides=($pkgname)
@@ -71,7 +71,6 @@ package() {
7171
case "$CARCH" in
7272
x86_64) suffix="x64" ;;
7373
aarch64) suffix="arm64" ;;
74-
armv7h) suffix="armv7l" ;;
7574
*) echo "Unsupported architecture: $CARCH"; exit 1 ;;
7675
esac
7776
cp -r --preserve=mode "dist/github-desktop-plus-linux-$suffix/"* "$INSTALL_DIR/"

script/build.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,19 +137,15 @@ function packageApp() {
137137
)
138138
}
139139

140-
const getPackageArch = (): 'arm64' | 'x64' | 'armv7l' => {
140+
const getPackageArch = (): 'arm64' | 'x64' => {
141141
const arch = process.env.npm_config_arch || process.arch
142142

143143
if (arch === 'arm64' || arch === 'x64') {
144144
return arch
145145
}
146146

147-
if (arch === 'arm') {
148-
return 'armv7l'
149-
}
150-
151147
throw new Error(
152-
`Building Desktop for architecture '${arch}' is not supported. Currently these architectures are supported: arm, arm64, x64`
148+
`Building Desktop for architecture '${arch}' is not supported. Currently these architectures are supported: arm64, x64`
153149
)
154150
}
155151

script/dist-info.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,14 @@ export const isPublishable = () =>
112112
export const getChannel = () =>
113113
process.env.RELEASE_CHANNEL ?? process.env.NODE_ENV ?? 'development'
114114

115-
export function getDistArchitecture(): 'arm64' | 'x64' | 'armv7l' {
115+
export function getDistArchitecture(): 'arm64' | 'x64' {
116116
// If a specific npm_config_arch is set, we use that one instead of the OS arch (to support cross compilation)
117117
const arch = process.env.npm_config_arch || process.arch
118118

119-
if (arch === 'arm64' || arch === 'x64' || arch === 'armv7l') {
119+
if (arch === 'arm64' || arch === 'x64') {
120120
return arch
121121
}
122122

123-
if (arch === 'arm') {
124-
return 'armv7l'
125-
}
126-
127123
// TODO: Check if it's x64 running on an arm64 Windows with IsWow64Process2
128124
// More info: https://www.rudyhuyn.com/blog/2017/12/13/how-to-detect-that-your-x86-application-runs-on-windows-on-arm/
129125
// Right now (March 3, 2021) is not very important because support for x64

script/package-electron-builder.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ function getArchitecture() {
1414
switch (arch) {
1515
case 'arm64':
1616
return '--arm64'
17-
case 'arm':
18-
return '--armv7l'
1917
default:
2018
return '--x64'
2119
}

script/package-redhat.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ function getArchitecture() {
1414
switch (arch) {
1515
case 'arm64':
1616
return 'aarch64'
17-
case 'arm':
18-
return 'armv7l'
1917
default:
2018
return 'x86_64'
2119
}

0 commit comments

Comments
 (0)