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-client.git
git clone --quiet https://github.com/swing-opensource/swingmusic.git git clone --quiet https://github.com/swing-opensource/swingmusic.git
# Manual poetry installation as installers are broken. # Manual poetry installation as installers are broken.
python3.11 -m venv poetry python3.11 -m venv venv
source poetry/bin/activate source venv/bin/activate
cd swingmusic cd swingmusic
pip install -U pip setuptools # pip install -U pip setuptools
pip install poetry pip install -r requirements.txt
cd ../swingmusic-client cd ../swingmusic-client
yarn install yarn install
@@ -37,12 +37,12 @@ yarn build --outDir ../swingmusic/client
cd ../swingmusic cd ../swingmusic
# Fixes poetry issue 5250. # Fixes poetry issue 5250.
export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring # export PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring
poetry env use /usr/bin/python3.11 # poetry env use /usr/bin/python3.11
poetry install # poetry install
# Swing gives error if this is not set. Set to version of repo you cloned. # Swing gives error if this is not set. Set to version of repo you cloned.
export SWINGMUSIC_APP_VERSION="TAG" export SWINGMUSIC_APP_VERSION="TAG"
poetry run python manage.py --build python manage.py --build
# rename binary # rename binary
mv dist/swingmusic dist/swingmusic_linux_arm64 mv dist/swingmusic dist/swingmusic_linux_arm64
+4
View File
@@ -2,6 +2,7 @@
This file is used to run the application. This file is used to run the application.
""" """
import logging
import os import os
import psutil import psutil
import waitress import waitress
@@ -54,6 +55,9 @@ mimetypes.add_type("application/manifest+json", ".webmanifest")
# werkzeug = logging.getLogger("werkzeug") # werkzeug = logging.getLogger("werkzeug")
# werkzeug.setLevel(logging.ERROR) # werkzeug.setLevel(logging.ERROR)
waitress_logger = logging.getLogger("waitress")
waitress_logger.setLevel(logging.ERROR)
# # logging.basicConfig() # # logging.basicConfig()
# logging.getLogger("sqlalchemy.engine").setLevel(logging.ERROR) # logging.getLogger("sqlalchemy.engine").setLevel(logging.ERROR)