3
3
4
4
set -ex
5
5
6
+ arch=` dpkg --print-architecture`
7
+
6
8
eval " $( pyenv init --path) "
7
9
eval " $( pyenv virtualenv-init -) "
8
10
pip install -U pip
9
11
pip install poetry
10
12
11
13
# Setup poetry and install the dependencies
12
- poetry install -E qt
14
+ if [[ $arch == " amd64" ]]; then
15
+ poetry install -E qt
16
+ else
17
+ poetry install
18
+ fi
13
19
14
20
# We also need to change the timestamps of all of the base library files
15
21
lib_dir=` pyenv root` /versions/3.9.7/lib/python3.9
@@ -18,8 +24,12 @@ TZ=UTC find ${lib_dir} -name '*.py' -type f -execdir touch -t "201901010000.00"
18
24
# Make the standalone binary
19
25
export PYTHONHASHSEED=42
20
26
poetry run pyinstaller hwi.spec
21
- poetry run contrib/generate-ui.sh
22
- poetry run pyinstaller hwi-qt.spec
27
+
28
+ if [[ $arch == " amd64" ]]; then
29
+ poetry run contrib/generate-ui.sh
30
+ poetry run pyinstaller hwi-qt.spec
31
+ fi
32
+
23
33
unset PYTHONHASHSEED
24
34
25
35
# Make the final compressed package
@@ -29,13 +39,22 @@ OS=`uname | tr '[:upper:]' '[:lower:]'`
29
39
if [[ $OS == " darwin" ]]; then
30
40
OS=" mac"
31
41
fi
32
- target_tarfile=" hwi-${VERSION} -${OS} -amd64.tar.gz"
33
- tar -czf $target_tarfile hwi hwi-qt
42
+
43
+ target_tarfile=" hwi-${VERSION} -${OS} -${arch} .tar.gz"
44
+
45
+ if [[ $arch == " amd64" ]]; then
46
+ tar -czf $target_tarfile hwi hwi-qt
47
+ else
48
+ tar -czf $target_tarfile hwi
49
+ fi
34
50
35
51
# Copy the binaries to subdir for shasum
36
52
target_dir=" $target_tarfile .dir"
37
53
mkdir $target_dir
38
54
mv hwi $target_dir
39
- mv hwi-qt $target_dir
55
+
56
+ if [[ $arch == " amd64" ]]; then
57
+ mv hwi-qt $target_dir
58
+ fi
40
59
41
60
popd
0 commit comments