mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-04 03:19:37 +00:00
linux/appimage: generate byte-code files and package them
This makes the app start slightly faster, as byte-code files won't need to be generated every time users run the app. https://docs.python.org/3.10/library/compileall.html
This commit is contained in:
@@ -24,6 +24,8 @@ script:
|
||||
|
||||
# Install requirements.
|
||||
- python3 -m pip install --ignore-installed --prefix=/usr --root="$TARGET_APPDIR" -r "$SOURCE_DIR/../requirements.txt" certifi
|
||||
# Generate byte-code files beforehand, for slightly faster app startup.
|
||||
- python3 -m compileall "$TARGET_APPDIR/usr/src/"*.py
|
||||
|
||||
AppDir:
|
||||
app_info:
|
||||
|
||||
Reference in New Issue
Block a user