update arm64 buildscript to avoid poetry

This commit is contained in:
cwilvx
2025-03-01 18:50:49 +03:00
parent 5adde56fce
commit 0215610079
2 changed files with 12 additions and 8 deletions
+8 -8
View File
@@ -23,13 +23,13 @@ cd swingmusicbuilder
git clone --quiet https://github.com/swing-opensource/swingmusic-client.git
git clone --quiet https://github.com/swing-opensource/swingmusic.git
# Manual poetry installation as installers are broken.
python3.11 -m venv poetry
source poetry/bin/activate
python3.11 -m venv venv
source venv/bin/activate
cd swingmusic
pip install -U pip setuptools
pip install poetry
# pip install -U pip setuptools
pip install -r requirements.txt
cd ../swingmusic-client
yarn install
@@ -37,12 +37,12 @@ yarn build --outDir ../swingmusic/client
cd ../swingmusic
# Fixes poetry issue 5250.
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
poetry env use /usr/bin/python3.11
poetry install
# export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
# poetry env use /usr/bin/python3.11
# poetry install
# Swing gives error if this is not set. Set to version of repo you cloned.
export SWINGMUSIC_APP_VERSION="TAG"
poetry run python manage.py --build
python manage.py --build
# rename binary
mv dist/swingmusic dist/swingmusic_linux_arm64