mirror of
https://github.com/zontreck/NBTEditor
synced 2024-11-21 13:48:56 -07:00
Update jenkinsfile
This commit is contained in:
parent
270d097102
commit
fcc9be39a5
2 changed files with 16 additions and 16 deletions
27
Jenkinsfile
vendored
27
Jenkinsfile
vendored
|
@ -12,23 +12,26 @@ pipeline {
|
|||
}
|
||||
steps {
|
||||
script {
|
||||
// Ensure that all necessary directories exist before operations
|
||||
sh 'flutter pub get'
|
||||
sh 'chmod +x compile.sh'
|
||||
sh './compile.sh'
|
||||
sh '''
|
||||
#!/bin/bash
|
||||
|
||||
// Move to the correct directories and archive artifacts
|
||||
dir('build/linux/x64/release/bundle') {
|
||||
archiveArtifacts artifacts: '*.tgz', fingerprint: true
|
||||
}
|
||||
dir('build/app/outputs/flutter-apk') {
|
||||
archiveArtifacts artifacts: '*.apk', fingerprint: true
|
||||
}
|
||||
archiveArtifacts artifacts: 'out/*nb*', fingerprint: true
|
||||
flutter pub get
|
||||
chmod +x compile.sh
|
||||
./compile.sh
|
||||
|
||||
cd build/linux/x64/release/bundle
|
||||
tar -cvf ../../../../../linux.tgz ./
|
||||
cd ../../../../app/outputs/flutter-apk
|
||||
cp app-release.apk ../../../../
|
||||
'''
|
||||
}
|
||||
}
|
||||
post {
|
||||
always {
|
||||
archiveArtifacts artifacts: '*.tgz', fingerprint: true
|
||||
archiveArtifacts artifacts: '*.apk', fingerprint: true
|
||||
archiveArtifacts artifacts: 'out/*nb*', fingerprint: true
|
||||
|
||||
deleteDir()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,4 @@
|
|||
flutter build linux
|
||||
flutter build apk
|
||||
dart compile exe -o out/nbt2snbt bin/nbt2snbt.dart
|
||||
dart compile exe -o out/snbt2nbt bin/snbt2nbt.dart
|
||||
|
||||
rm out/*.snbt || true
|
||||
rm out/*.nbt || true
|
||||
dart compile exe -o out/snbt2nbt bin/snbt2nbt.dart
|
Loading…
Reference in a new issue