Use a compile.bat file

This commit is contained in:
zontreck 2024-08-31 00:12:30 -07:00
parent 322f70fe47
commit 3aeca5f92c
2 changed files with 26 additions and 31 deletions

32
Jenkinsfile vendored
View file

@ -39,42 +39,12 @@ pipeline {
}
steps {
bat '''
git clean -xfd
git reset --hard
mkdir cpp\\build
cd cpp\\build
cmake ..
cmake --build .
cd ..\\..
'''
bat 'compile.bat'
archiveArtifacts artifacts: "cpp\\build\\Debug\\vsleep.exe", fingerprint: true
archiveArtifacts artifacts: "cpp\\build\\Debug\\pause.exe", fingerprint: true
bat '''
cd dart
mkdir out
dart pub get
'''
bat '''
cd dart
dart compile exe -o out\\dbikc.exe bin\\dbikc.dart
dart compile exe -o out\\uuidgen.exe bin\\uuidgen.dart
dart compile exe -o out\\mkfsreport.exe bin\\mkfsreport.dart
dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart
dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
dart compile exe -o out\\pause.exe bin\\pause.dart
dart compile exe -o out\\sleep.exe bin\\sleep.dart
cd ..
'''
archiveArtifacts artifacts: "dart\\out\\*.exe", fingerprint: true
}

25
compile.bat Normal file
View file

@ -0,0 +1,25 @@
git clean -xfd
git reset --hard
mkdir cpp\build
cd cpp\build
cmake ..
cmake --build .
cd ..\..
cd dart
mkdir out
dart pub get
dart compile exe -o out\\dbikc.exe bin\\dbikc.dart
dart compile exe -o out\\uuidgen.exe bin\\uuidgen.dart
dart compile exe -o out\\mkfsreport.exe bin\\mkfsreport.dart
dart compile exe -o out\\nbt2snbt.exe bin\\nbt2snbt.dart
dart compile exe -o out\\snbt2nbt.exe bin\\snbt2nbt.dart
dart compile exe -o out\\pause.exe bin\\pause.dart
dart compile exe -o out\\sleep.exe bin\\sleep.dart
cd ..