Skip to content

Commit 675e346

Browse files
committed
Merge #693: build: Detect architecture and use x86_64 naming
e39a661 build: Detect architecture and use x86_64 naming (Andrew Chow) Pull request description: We want to build on other architectures in the future, so change binary build naming to support detecting those architectures. Also renames amd64 to the standard x86_64 for the windows build. Top commit has no ACKs. Tree-SHA512: 73197c91ac110b3ad7b54ea488324f8448e2867866b46988101228ca438e274ea5a96391999be1566d4adf08fa784b20c58f9dc5a12fa7681d260624ccd56dee
2 parents e9daf68 + e39a661 commit 675e346

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.cirrus.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ task:
322322
install_script: pip install dist/*.whl
323323
test_script: cd test; ./run_tests.py $DEVICE --interface=cli --device-only; cd ..
324324
- name: Python $PYTHON $DEVICE Sdist
325-
install_script: pip install $(find dist -name "*.tar.gz" -a -not -name "*amd64*")
325+
install_script: pip install $(find dist -name "*.tar.gz" -a -not -name "*linux*")
326326
test_script: cd test; ./run_tests.py $DEVICE --interface=cli --device-only; cd ..
327327
- name: Python $PYTHON $DEVICE Bindist
328328
install_script: poetry install

contrib/build_bin.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ OS=`uname | tr '[:upper:]' '[:lower:]'`
4040
if [[ $OS == "darwin" ]]; then
4141
OS="mac"
4242
fi
43-
target_tarfile="hwi-${VERSION}-${OS}-amd64.tar.gz"
43+
ARCH=$(uname -m | tr '[:upper:]' '[:lower:]')
44+
target_tarfile="hwi-${VERSION}-${OS}-${ARCH}.tar.gz"
4445

4546
if [[ $gui_support == "--with-gui" ]]; then
4647
tar -czf $target_tarfile hwi hwi-qt

contrib/build_wine.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ unset PYTHONHASHSEED
8888
# Make the final compressed package
8989
pushd dist
9090
VERSION=`$POETRY run hwi --version | cut -d " " -f 2 | dos2unix`
91-
target_zipfile="hwi-${VERSION}-windows-amd64.zip"
91+
target_zipfile="hwi-${VERSION}-windows-x86_64.zip"
9292
zip $target_zipfile hwi.exe hwi-qt.exe
9393

9494
# Copy the binaries to subdir for shasum

0 commit comments

Comments
 (0)