Changeset 25946
- Timestamp:
- 2016-04-06T06:33:21+02:00 (8 years ago)
- Location:
- installers/windows/OpenModelicaSetup
- Files:
-
- 1 added
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
installers/windows/OpenModelicaSetup/BuildWindowsRelease.sh
r25945 r25946 5 5 # 6 6 # expects to have these things installed: 7 # python 2.7.x (you need to run easy_install joblib simplejson requests in the cmd line in python\Scripts)8 7 # nsis installer 9 8 # TortoiseSVN command line tools 10 # Qt 4.8.011 9 # jdk 12 10 # git command line clients (PUT IT LAST IN THE PATH!) http://git-scm.com/downloads … … 17 15 export SSHUSER=$1 18 16 export MAKETHREADS=$2 19 export GIT_BRANCH=$3 17 export PLATFORM=$3 # 32bit or 64bit 18 export GIT_BRANCH=$4 20 19 21 20 # set the path to our tools 22 export PATH=$PATH:/c/ bin/python273:/c/Program\ Files/TortoiseSVN/bin/:/c/bin/jdk/bin:/c/bin/nsis/:/c/bin/QtSDK/Desktop/Qt/4.8.0/mingw/bin:/c/bin/git/bin:21 export PATH=$PATH:/c/Program\ Files/TortoiseSVN/bin/:/c/bin/jdk/bin:/c/bin/nsis/:/c/bin/git/bin: 23 22 24 23 # set the OPENMODELICAHOME and OPENMODELICALIBRARY … … 51 50 # Directory prefix 52 51 export OMC_INSTALL_PREFIX="/c/dev/OpenModelica_releases/${REVISION}/" 52 # make the file prefix 53 export OMC_INSTALL_FILE_PREFIX="${OMC_INSTALL_PREFIX}OpenModelica-${REVISION}-${PLATFORM}" 53 54 54 55 # test if exists and exit if it does 55 if [ - d "${OMC_INSTALL_PREFIX}" ]; then56 echo "Revision ${OMC_INSTALL_ PREFIX}already exists! Exiting ..."56 if [ -f "${OMC_INSTALL_FILE_PREFIX}.exe" ]; then 57 echo "Revision ${OMC_INSTALL_FILE_PREFIX}.exe already exists! Exiting ..." 57 58 exit 0 58 59 fi … … 60 61 # create the revision directory 61 62 mkdir -p ${OMC_INSTALL_PREFIX} 62 # make the file prefix63 export OMC_INSTALL_FILE_PREFIX="${OMC_INSTALL_PREFIX}OpenModelica-${REVISION}"64 63 65 64 # update OpenModelicaSetup … … 72 71 rm -rf build/ 73 72 mkdir build/ 73 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} gitclean || true 74 74 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} clean 75 75 cd /c/dev/OpenModelica 76 echo "Building OpenModelica" 77 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} 78 echo "Building OpenModelica libraries" 79 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} omlibrary-all 76 echo "Building OpenModelica and OpenModelica libraries" 77 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} omc omc-diff omlibrary-all qtclients 80 78 cd /c/dev/OpenModelica 81 79 echo "Installing Python scripting" 82 80 rm -rf OMPython 83 81 git clone https://github.com/OpenModelica/OMPython -q -b master /c/dev/OpenModelica/OMPython 84 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} install-python 85 #build OMClients 86 echo "Cleaning OMClients" 87 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} clean-qtclients 88 echo "Building OMClients" 89 make -f 'Makefile.omdev.mingw' -j2 qtclients 82 make -k -f 'Makefile.omdev.mingw' ${MAKETHREADS} install-python 90 83 cd /c/dev/OpenModelica 91 84 echo "Building MSVC compiled runtime" 92 make -f 'Makefile.omdev.mingw' simulationruntimecmsvc85 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} simulationruntimecmsvc 93 86 echo "Building MSVC CPP runtime" 94 make -f 'Makefile.omdev.mingw' BUILDTYPE=Release runtimeCPPmsvcinstall87 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} BUILDTYPE=Release runtimeCPPmsvcinstall 95 88 echo "Building CPP runtime" 96 make -f 'Makefile.omdev.mingw' BUILDTYPE=Release runtimeCPPinstall89 make -f 'Makefile.omdev.mingw' ${MAKETHREADS} BUILDTYPE=Release runtimeCPPinstall 97 90 98 91 # wget the html & pdf versions of OpenModelica users guide … … 109 102 # build the installer 110 103 cd /c/dev/OpenModelica/OpenModelicaSetup 111 makensis OpenModelicaSetup .nsi > trace.txt 2>&1104 makensis OpenModelicaSetup${PLATFORM}.nsi > trace.txt 2>&1 112 105 cat trace.txt 113 106 # move the installer 114 mv OpenModelica .exe ${OMC_INSTALL_FILE_PREFIX}.exe107 mv OpenModelica${PLATFORM}.exe ${OMC_INSTALL_FILE_PREFIX}.exe 115 108 116 109 # gather the svn log … … 126 119 echo "See also (match revision ${REVISION} to build jobs):" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt 127 120 echo " https://test.openmodelica.org/hudson/" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt 128 echo " http://test.openmodelica.org/~marsj/MSL31/BuildModelRecursive.html" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt129 121 echo " http://test.openmodelica.org/~marsj/MSL32/BuildModelRecursive.html" >> ${OMC_INSTALL_FILE_PREFIX}-README.txt 130 122 echo " " >> ${OMC_INSTALL_FILE_PREFIX}-README.txt … … 180 172 ssh ${SSHUSER}@build.openmodelica.org <<ENDSSH 181 173 #commands to run on remote host 182 cd public_html/omc/builds/windows/nightly-builds/ 174 cd public_html/omc/builds/windows/nightly-builds/${PLATFORM}/ 183 175 mv -f OpenModelica* older/ 184 176 ENDSSH 185 scp OpenModelica* ${SSHUSER}@build.openmodelica.org:public_html/omc/builds/windows/nightly-builds/ 177 scp OpenModelica* ${SSHUSER}@build.openmodelica.org:public_html/omc/builds/windows/nightly-builds/${PLATFORM}/ 186 178 echo "All done!" -
installers/windows/OpenModelicaSetup/OpenModelicaSetup32bit.nsi
r25945 r25946 2 2 # 2011-jul-29 21:01:29 3 3 4 Name OpenModelica1.10.0-dev 4 Name OpenModelica1.10.0-dev-32bit 5 5 6 6 # General Symbol Definitions 7 7 !define REGKEY "SOFTWARE\OpenModelica" 8 !define VERSION 1.10.0-dev 8 !define VERSION 1.10.0-dev-32bit 9 9 !define COMPANY "Open Source Modelica Consortium (OSMC) and Linköping University (LiU)." 10 10 !define URL "http://www.openmodelica.org/" … … 103 103 SetOutPath "$INSTDIR\bin" 104 104 File "..\build\bin\*" 105 File /r /x "*.svn" /x "qsvgicon4.dll" "$%OMDEV%\tools\OMTools\dll\*"106 File "$%OMDEV%\lib\omniORB-4.1.6-mingw\bin\x86_win32\omniORB416_rt.dll"107 File "$%OMDEV%\lib\omniORB-4.1.6-mingw\bin\x86_win32\omniDynamic416_rt.dll"108 File "$%OMDEV%\lib\omniORB-4.1.6-mingw\bin\x86_win32\omnithread34_rt.dll"109 105 File "..\OMCompiler\OSMC-License.txt" 110 106 # Copy the openssl binaries … … 112 108 File "bin\libssl32.dll" 113 109 File "bin\ssleay32.dll" 114 # Create bin\iconengines directory and copy files in it 115 SetOutPath "$INSTDIR\bin\iconengines" 116 File "$%OMDEV%\tools\OMTools\dll\qsvgicon4.dll" 110 # Create bin\plugings\* directories 111 File /r /x "*.svn" "$%OMDEV%\tools\msys\mingw32\share\qt5\plugins\*" 117 112 # Create icons directory and copy files in it 118 113 SetOutPath "$INSTDIR\icons" … … 129 124 SetOutPath "$INSTDIR\lib" 130 125 File /r /x "*.svn" /x "*.git" "..\build\lib\*" 131 # Create MinGW directory and copy files in it132 SetOutPath "$INSTDIR\MinGW"133 File /r /x "*.svn" "$%OMDEV%\tools\MinGW\*"134 126 # Create msys directory and copy files in it 135 SetOutPath "$INSTDIR\ msys"136 File /r /x " *.svn" "$%OMDEV%\tools\msys\*"127 SetOutPath "$INSTDIR\tools\msys" 128 File /r /x "group" /x "passwd" /x "mingw64" /x "pacman.log" "$%OMDEV%\tools\msys\*" 137 129 # Create share directory and copy files in it 138 130 SetOutPath "$INSTDIR\share" … … 181 173 182 174 Section -post SEC0001 183 # create the file with InstallMode 184 FileOpen $4 "$INSTDIR\msys\etc\fstab" w 185 FileWrite $4 "$INSTDIR\MinGW /mingw" 186 FileClose $4 175 # generate group and passwd files for this machine! 176 Exec '"$INSTDIR\tools\msys\usr\bin\mkpasswd.exe" -l -c > $INSTDIR\tools\msys\etc\passwd' 177 Exec '"$INSTDIR\tools\msys\usr\bin\mkgroup.exe" -l -c > $INSTDIR\tools\msys\etc\group' 187 178 # do post installation actions 188 179 WriteRegStr SHCTX "${REGKEY}" Path $INSTDIR
Note: See TracChangeset
for help on using the changeset viewer.