33 lines
757 B
Groovy
33 lines
757 B
Groovy
|
import common.Build
|
||
|
import static common.Constants.strip
|
||
|
|
||
|
def j = new Build
|
||
|
(
|
||
|
name: 'Win32_GNU_MSI_dev',
|
||
|
libraries: 'Win32_GNU_dev',
|
||
|
label: "Windows7_${MERCURIAL_REVISION_BRANCH}",
|
||
|
artifacts: 'build/*.msi'
|
||
|
).generate(this)
|
||
|
|
||
|
|
||
|
j.with
|
||
|
{
|
||
|
steps
|
||
|
{
|
||
|
batchFile(strip("""\
|
||
|
cd build &
|
||
|
cmake ../source -G\"MinGW Makefiles\"
|
||
|
-DCMAKE_PREFIX_PATH=%WORKSPACE%\\libs\\build\\dist
|
||
|
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache
|
||
|
-DJENKINS_APPCAST=${MERCURIAL_REVISION_BRANCH}_Appcast
|
||
|
-DWIN_SIGN_KEYSTORE=%WIN_SIGN_KEYSTORE%
|
||
|
-DWIN_SIGN_KEYSTORE_PSW=%WIN_SIGN_KEYSTORE_PSW%
|
||
|
-DWIN_SIGN_SUBJECT_NAME=%WIN_SIGN_SUBJECT_NAME%
|
||
|
"""))
|
||
|
|
||
|
batchFile('cd build & mingw32-make %MAKE_FLAGS% package')
|
||
|
|
||
|
batchFile('cd build & mingw32-make package.sign')
|
||
|
}
|
||
|
}
|