Skip to content

Commit

Permalink
Merge #693: build: Detect architecture and use x86_64 naming
Browse files Browse the repository at this point in the history
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
  • Loading branch information
achow101 committed Jul 26, 2023
2 parents e9daf68 + e39a661 commit 675e346
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ task:
install_script: pip install dist/*.whl
test_script: cd test; ./run_tests.py $DEVICE --interface=cli --device-only; cd ..
- name: Python $PYTHON $DEVICE Sdist
install_script: pip install $(find dist -name "*.tar.gz" -a -not -name "*amd64*")
install_script: pip install $(find dist -name "*.tar.gz" -a -not -name "*linux*")
test_script: cd test; ./run_tests.py $DEVICE --interface=cli --device-only; cd ..
- name: Python $PYTHON $DEVICE Bindist
install_script: poetry install
Expand Down
3 changes: 2 additions & 1 deletion contrib/build_bin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ OS=`uname | tr '[:upper:]' '[:lower:]'`
if [[ $OS == "darwin" ]]; then
OS="mac"
fi
target_tarfile="hwi-${VERSION}-${OS}-amd64.tar.gz"
ARCH=$(uname -m | tr '[:upper:]' '[:lower:]')
target_tarfile="hwi-${VERSION}-${OS}-${ARCH}.tar.gz"

if [[ $gui_support == "--with-gui" ]]; then
tar -czf $target_tarfile hwi hwi-qt
Expand Down
2 changes: 1 addition & 1 deletion contrib/build_wine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ unset PYTHONHASHSEED
# Make the final compressed package
pushd dist
VERSION=`$POETRY run hwi --version | cut -d " " -f 2 | dos2unix`
target_zipfile="hwi-${VERSION}-windows-amd64.zip"
target_zipfile="hwi-${VERSION}-windows-x86_64.zip"
zip $target_zipfile hwi.exe hwi-qt.exe

# Copy the binaries to subdir for shasum
Expand Down

0 comments on commit 675e346

Please sign in to comment.