1
0
mirror of https://github.com/bpozdena/OneDriveGUI.git synced 2026-10-24 04:59:17 +03:00

Clean stale packaging output before building the AppImage wheel

The wheel-install step installs every *.whl in dist/. A wheel left over
from a previous build (with an older version baked into options.py) was
installed on top of the freshly built one, so the AppImage could carry a
mix of the new version in its filename and old code inside.
This commit is contained in:
Boris Pozdena
2026-10-18 18:42:24 +02:00
parent ec8fef6518
commit 404beb16e4

View File

@@ -13,6 +13,10 @@ script:
- rm -f AppDir/usr/local/lib/python3.10/dist-packages/PySide6/{Qt3D*,QtBluetooth*,QtCharts*,QtConcurrent*,QtDataVisualization*,QtDBus*,QtDesigner*,QtHelp*,QtMultimedia*,QtNetwork*,QtOpenGL*,QtPositioning*,QtPrintSupport*,QtQml*,QtQuick*,QtRemoteObjects*,QtScxml*,QtSensors*,QtSerialPort*,QtSql*,QtStateMachine*,QtSvg*,QtTest*,QtWeb*,QtXml*}
- shopt -s extglob
- rm -rf AppDir/usr/local/lib/python3.10/dist-packages/PySide6/Qt/lib/!(libQt6OpenGL*|libQt6XcbQpa*|libQt6Wayland*|libQt6Egl*|libicudata*|libicuuc*|libicui18n*|libQt6DBus*|libQt6Network*|libQt6Qml*|libQt6Core*|libQt6Gui*|libQt6Widgets*|libQt6Svg*|libQt6UiTools*)
# Remove packaging output from previous builds: the wheel install below picks
# up every *.whl in dist/, so a stale older wheel would overwrite the freshly
# built package in the AppDir (e.g. an old version number in options.py).
- rm -rf build dist src/onedrive_gui.egg-info
- python3 -m build
# --no-deps: dependencies were installed from requirements.txt above and pruned
# since; pip resolves them against the build container, not the AppDir, so