Re-add windows build job

This commit is contained in:
zontreck 2025-01-30 18:39:27 -07:00
parent 0582fa8b17
commit b09daf89f2
2 changed files with 28 additions and 0 deletions

27
Jenkinsfile vendored
View file

@ -50,6 +50,33 @@ pipeline {
} }
} }
} }
stage("Build on Windows") {
agent {
label "windows"
}
steps {
script {
bat 'del out\\.placeholder'
bat 'flutter pub get'
bat 'flutter build windows'
dir("build\\windows\\x64\\runner\\Release") {
bat 'tar -cvf ..\\..\\..\\..\\..\\windows.tgz .'
}
bat 'dart compile exe -o out\\nbteditor-cli.exe cli\\nbtcli.dart'
bat 'iscc wininst.iss'
} }
}
post {
always {
archiveArtifacts artifacts: "windows.tgz"
archiveArtifacts artifacts: "out\\NBTEditor-setup.exe"
archiveArtifacts artifacts: "out\\nbteditor-cli.exe"
cleanWs()
}
}
}
}
} }

View file

@ -49,6 +49,7 @@ Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files] [Files]
Source: "out\nbtedit-cli.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion Source: "build\windows\x64\runner\Release\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\windows\x64\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "build\windows\x64\runner\Release\flutter_windows.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "build\windows\x64\runner\Release\url_launcher_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion Source: "build\windows\x64\runner\Release\url_launcher_windows_plugin.dll"; DestDir: "{app}"; Flags: ignoreversion