Translations, suggestion box, UX
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good

This commit is contained in:
2025-03-03 00:47:38 +01:00
parent 9f187afc22
commit 9361bc0363
17 changed files with 1515 additions and 135 deletions

14
Jenkinsfile vendored
View File

@ -1,5 +1,5 @@
pipeline {
agent { label 'Pi4' } // Use Raspberry Pi 4 agent
agent { label 'Pi4' } // Use Raspberry Pi 4 agent running on Ubuntu Server LTS 24.04
environment {
PIP_EXTRA_INDEX_URL = 'http://localhost:8090/simple/' // Local PyPI repo
PACKAGE_NAME = 'kapitanbooru_uploader' // Your package name
@ -17,6 +17,18 @@ pipeline {
sh '. venv/bin/activate && pip install --upgrade pip build twine'
}
}
stage('Compile Translations') {
steps {
// Find all .po files under kapitanbooru_uploader/locales and compile them to .mo
sh '''
find kapitanbooru_uploader/locales -name "*.po" -print0 | while IFS= read -r -d '' po; do
mo=$(echo "$po" | sed 's/\\.po$/.mo/');
msgfmt "$po" -o "$mo";
done
'''
}
}
stage('Build Package') {
steps {