Translations, suggestion box, UX
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
All checks were successful
Gitea/kapitanbooru-uploader/pipeline/head This commit looks good
This commit is contained in:
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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 {
|
||||
|
Reference in New Issue
Block a user