-
Notifications
You must be signed in to change notification settings - Fork 10
/
README-BUILD-RELEASE-NSIS.txt
112 lines (91 loc) · 4.58 KB
/
README-BUILD-RELEASE-NSIS.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
/*
* RCS: $Id$
*/
---------------------------------------------------------------------------
How to build the OpenModelica release on Windows using NSIS
---------------------------------------------------------------------------
The following step-by-step guides explain how
to build the OpenModelica setup file on Windows
using the NullSoft Scriptable Install System(NSIS)
NOTE: for checkout of any of the SVN directories you will need this user/pass:
user: anonymous
pass: none <- write "none" without quotes here
00. Checkout the sources from Subversion:
https://openmodelica.org/svn/OpenModelica/trunk -> trunk
Checkout the OpenModelicaSetup directory from Subversion:
https://openmodelica.org/svn/OpenModelica/installers/windows/OpenModelicaSetup
into directory:
\trunk\Compiler\OpenModelicaSetup
IMPORTANT: OpenModelicaSetup HAS TO BE CHECKOUT into \trunk\Compiler\OpenModelicaSetup
since the installer script uses the relative paths.
Copy the AccessControl.dll and AccessControlW.dll to the NSIS plugins directory.
01. Update the version number:
in trunk/Compiler/runtime/config.h to "x.y.z"
in trunk/Examples/*.onb
in trunk/doc/*.doc + generate .pdfs
02. Please do all the steps in README-OMDev-MINGW.txt
use: make clean testlog
zip trunk\testsuite directory into trunk\testsuite.zip!
03. Additional needed files:
- take qtlibs from:
https://www.ida.liu.se/~adrpo/omc/omdev/qtlibs/
unpack it, point it by environment variable QTHOME
- svn checkout https://openmodelica.ida.liu.se/svn/OpenModelica/installers/windows/OMDev/tools/mingw
-> to \trunk\build\MinGW
REMOVE MinGW\lib\mlton
REMOVE MinGW\share\doc\mlton
ZIP MinGW\doc\*.* to MinGW\doc\doc.zip and delete them
ZIP MinGW\info\*.* to MinGW\info\info.zip and delete them
ZIP MinGW\man\*.* to MinGW\man\man.zip and delete them
Note that this step will have to be repeated starting from svn checkout
again if anything has changed in svn MinGW directory since last build.
- build OMShell, OMNotebook, OMPlot, OMOptim, OMPlotWindow using Qt SDK
into $OMDev\tools\OMTools\bin
- update $OMDev\tools\OMTools\qtdlls with the newest from Qt SDK!
04. Update the version into:
- documentation
- *.onb files
- everywhere you might find it
05. Download and install NSIS 2.46 from http://nsis.sourceforge.net/Main_Page
06. Open the file \trunk\Compiler\OpenModelicaSetup\OpenModelciaSetup.nsi
Change the version number everywhere.
Save the changes.
Close the file.
07. Right click \trunk\Compiler\OpenModelicaSetup\OpenModelciaSetup.nsi and choose Compile NSIS Script.
A dialog will show up showing the compilation details.
08. You get a OpenModelica.exe into \trunk\Compiler\OpenModelicaSetup
Copy it to a release folder with name:
OpenModelica-revision-NUMBER.exe
09. Generate files in a release folder:
See an example here:
http://build.openmodelica.org/omc/builds/windows/nightly-builds/
- Below, all NUMBER is the Subversion revision number
- OpenModelica-revision-NUMBER.exe
+ from OpenModelica.exe
- OpenModelica-revision-NUMBER-ChangeLog.txt
+ from Show log on subversion, until the first revision, i.e.
in TortoiseSVN: un-check "Hide unrelated changed paths" and
"Stop on copy/rename" and click "Show All".
- OpenModelica-revision-NUMBER-README.txt
+ write the new important stuff here
- OpenModelica-revision-NUMBER-testsuite-trace.txt
+ from trunk\testsuite\testsuite-trace.txt
Push the new build into:
http://build.openmodelica.org/omc/builds/windows/nightly-builds/
if you have the rights :) and move the old one into:
http://build.openmodelica.org/omc/builds/windows/nightly-builds/older
10. TEST, TEST AND TEST!
- Perfectly would be on a machine with NO VS, NO OMDEV, CLEAN WINDOWS!
- Uninstall your current OpenModelica!
- Delete/backup all your files from c:\OpenModelica[x.y.z]
- Unset environment variable OMDEV (change its name to NOOMDEV)
+ this is needed to make sure no files are missing from
C:\OpenModelica[x.y.z]\MinGW and compilation/simulation
works fine
- Install the new OpenModelica
- test OMShell, OMNotebook, OMEdit, OMPlot*, OMOptim
11. Be extremely proud and glad, you made it! :)
12. Don't forget to re-set NOOMDEV env. var back to OMDEV :)
13. Contact us ([email protected]) or me Adeel Asghar [[email protected]]
with any comments, suggestions or problems regarding this document!
Adeel Asghar.