Skip to content

Commit 0dcfd10

Browse files
committed
Export ARCH when building the AppImage
1 parent 26061c4 commit 0dcfd10

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎README.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ single file and changing its mode to executable, e.g. as:
1515

1616
```sh
1717
wget https://github.com/niess/python-appimage/releases/download/\
18-
python3.8/python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage
19-
chmod +x python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage
18+
python3.8/python3.8.3-cp38-cp38-manylinux1_x86_64.AppImage
19+
chmod +x python3.8.3-cp38-cp38-manylinux1_x86_64.AppImage
2020

21-
./python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage
21+
./python3.8.3-cp38-cp38-manylinux1_x86_64.AppImage
2222
```
2323

2424
This should start a Python 3.8 interactive session on _almost_ any Linux
@@ -30,9 +30,9 @@ its standard library. However, if you plan to install extra packages we
3030
recommend extracting the AppImage, e.g. as:
3131

3232
```sh
33-
./python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage --appimage-extract
33+
./python3.8.3-cp38-cp38-manylinux1_x86_64.AppImage --appimage-extract
3434
mv squashfs-root python3.8
35-
rm -f python3.8.2-cp38-cp38-manylinux1_x86_64.AppImage
35+
rm -f python3.8.3-cp38-cp38-manylinux1_x86_64.AppImage
3636

3737
export PATH="$(pwd)/python3.8/usr/bin:$PATH"
3838
```

‎python_appimage/appimage/build.py‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import os
2+
import platform
23
import re
34
import subprocess
45
import sys
@@ -23,7 +24,8 @@ def build_appimage(appdir=None, destination=None):
2324
log('BUILD', appdir)
2425
ensure_appimagetool()
2526

26-
cmd = [APPIMAGETOOL, '--no-appstream', appdir]
27+
arch = platform.machine()
28+
cmd = ['ARCH=' + arch, APPIMAGETOOL, '--no-appstream', appdir]
2729
if destination is not None:
2830
cmd.append(destination)
2931
cmd = ' '.join(cmd)

0 commit comments

Comments
 (0)