From b25347a291a0d8afed77b5cceff1bbbf27178c7f Mon Sep 17 00:00:00 2001 From: zontreck Date: Sun, 23 Mar 2025 13:12:06 -0700 Subject: [PATCH] Add a build on windows stage --- Jenkinsfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 23a1bcc..cd226f6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,5 +42,29 @@ pipeline { } } } + + stage ("Build Windows") { + agent { + label 'windows' + } + + steps { + script { + bat 'flutter pub get' + bat 'flutter build windows' + + dir ("build/windows/x64/runner/release") { + bat 'tar -cvf ../../../../../windows.tgz .' + } + } + } + post { + success { + archiveArtifacts artifacts: "windows.tgz" + + cleanWs() + } + } + } } } \ No newline at end of file