File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ single file and changing its mode to executable, e.g. as:
1515
1616``` sh
1717wget 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
2424This 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
3030recommend 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
3434mv 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
3737export PATH=" $( pwd) /python3.8/usr/bin:$PATH "
3838```
Original file line number Diff line number Diff line change 11import os
2+ import platform
23import re
34import subprocess
45import 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 )
You can’t perform that action at this time.
0 commit comments