diff --git a/Jenkinsfile b/Jenkinsfile index 3b65d35..21ea3f6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -76,11 +76,14 @@ pipeline { script { bat 'flutter pub get' bat 'flutter build windows' + bat 'mkdir out' + bat 'dart compile exe -o out\\server.exe bin\\server.dart' } } post { always { + archiveArtifacts artifacts: "out\\*.exe", fingerprint: true deleteDir() } } diff --git a/compile.sh b/compile.sh index f3709a0..0002066 100755 --- a/compile.sh +++ b/compile.sh @@ -5,11 +5,15 @@ then mkdir out fi +flutter pub get + + if [[ -z "${DOCKER}" ]] then flutter build linux fi + dart compile exe -o out/server bin/server.dart rsync -a --progress -h --delete build/linux/x64/release/bundle/ out/client/