|
1 | | -<?xml version="1.0" encoding="UTF-8"?> |
2 | | -<project name="module-python" basedir="."> |
3 | | - |
4 | | - <dirname property="project.basedir" file="${ant.file.module-python}"/> |
5 | | - <property name="root.dir" location="${project.basedir}/.."/> |
6 | | - <property name="build.properties" value="${project.basedir}/build.properties"/> |
7 | | - <property file="${build.properties}"/> |
8 | | - |
9 | | - <!-- Neard dev --> |
10 | | - <property name="dev.path" location="${root.dir}/dev"/> |
11 | | - <fail unless="dev.path" message="Project 'dev' not found in ${dev.path}"/> |
12 | | - <echo message="Neard dev found in ${dev.path}" level="debug"/> |
13 | | - |
14 | | - <!-- Import build-commons.xml --> |
15 | | - <import file="${dev.path}/build/build-commons.xml"/> |
16 | | - <!-- Import build-bundle.xml --> |
17 | | - <import file="${dev.path}/build/build-bundle.xml"/> |
18 | | - |
19 | | - <target name="release.build"> |
20 | | - <basename property="bundle.folder" file="${bundle.path}"/> |
21 | | - <replaceproperty src="bundle.folder" dest="bundle.version" replace="${bundle.name}" with=""/> |
22 | | - |
23 | | - <getmoduleuntouched name="${bundle.name}" version="${bundle.version}" propSrcDest="bundle.srcdest" propSrcFilename="bundle.srcfilename"/> |
24 | | - <assertfile file="${bundle.srcdest}/scripts/python.bat"/> |
25 | | - |
26 | | - <!-- Temp copy --> |
27 | | - <copy todir="${bundle.srcdest}" overwrite="true"> |
28 | | - <fileset dir="${bundle.path}" defaultexcludes="yes"/> |
29 | | - </copy> |
30 | | - |
31 | | - <!-- Upgrade PIP --> |
32 | | - <echo message="Upgrade PIP"/> |
33 | | - <exec executable="${bundle.srcdest}/bin/python.bat" dir="${bundle.srcdest}/bin" failonerror="true"> |
34 | | - <arg value="-m"/> |
35 | | - <arg value="pip"/> |
36 | | - <arg value="install"/> |
37 | | - <arg value="--upgrade"/> |
38 | | - <arg value="pip"/> |
39 | | - </exec> |
40 | | - |
41 | | - <!-- Download PyQt4 --> |
42 | | - <echo message="Download PyQt4"/> |
43 | | - <property name="pyqt4.path" location="${bundle.srcdest}/pyqt4"/> |
44 | | - <property file="${pyqt4.path}/pyqt4.properties"/> |
45 | | - <mkdir dir="${pyqt4.path}"/> |
46 | | - <get dest="${pyqt4.path}" src="${pyqt4}" skipexisting="true"/> |
47 | | - |
48 | | - <!-- Install PyQt4 --> |
49 | | - <echo message="Install PyQt4"/> |
50 | | - <exec executable="${pyqt4.path}/install.bat" dir="${pyqt4.path}" failonerror="true"/> |
51 | | - <delete dir="${pyqt4.path}"/> |
52 | | - |
53 | | - <delete dir="${bundle.tmp.prep.path}/${bundle.folder}"/> |
54 | | - <mkdir dir="${bundle.tmp.prep.path}/${bundle.folder}"/> |
55 | | - <copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true"> |
56 | | - <fileset dir="${bundle.srcdest}"/> |
57 | | - </copy> |
58 | | - <copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true"> |
59 | | - <fileset dir="${bundle.path}" defaultexcludes="yes" excludes=" |
60 | | - pyqt4/**" |
61 | | - /> |
62 | | - </copy> |
63 | | - </target> |
64 | | - |
65 | | -</project> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project name="module-python" basedir="."> |
| 3 | + |
| 4 | + <dirname property="project.basedir" file="${ant.file.module-python}"/> |
| 5 | + <property name="root.dir" location="${project.basedir}/.."/> |
| 6 | + <property name="build.properties" value="${project.basedir}/build.properties"/> |
| 7 | + <property file="${build.properties}"/> |
| 8 | + |
| 9 | + <!-- Bearsampp dev --> |
| 10 | + <property name="dev.path" location="${root.dir}/dev"/> |
| 11 | + <fail unless="dev.path" message="Project 'dev' not found in ${dev.path}"/> |
| 12 | + <echo message="Bearsampp dev found in ${dev.path}" level="debug"/> |
| 13 | + |
| 14 | + <!-- Import build-commons.xml --> |
| 15 | + <import file="${dev.path}/build/build-commons.xml"/> |
| 16 | + <!-- Import build-bundle.xml --> |
| 17 | + <import file="${dev.path}/build/build-bundle.xml"/> |
| 18 | + |
| 19 | + <target name="release.build"> |
| 20 | + <basename property="bundle.folder" file="${bundle.path}"/> |
| 21 | + <replaceproperty src="bundle.folder" dest="bundle.version" replace="${bundle.name}" with=""/> |
| 22 | + |
| 23 | + <getmoduleuntouched name="${bundle.name}" version="${bundle.version}" propSrcDest="bundle.srcdest" propSrcFilename="bundle.srcfilename"/> |
| 24 | + <assertfile file="${bundle.srcdest}/scripts/python.bat"/> |
| 25 | + |
| 26 | + <!-- Temp copy --> |
| 27 | + <copy todir="${bundle.srcdest}" overwrite="true"> |
| 28 | + <fileset dir="${bundle.path}" defaultexcludes="yes"/> |
| 29 | + </copy> |
| 30 | + |
| 31 | + <!-- Upgrade PIP --> |
| 32 | + <echo message="Upgrade PIP"/> |
| 33 | + <exec executable="${bundle.srcdest}/bin/python.bat" dir="${bundle.srcdest}/bin" failonerror="true"> |
| 34 | + <arg value="-m"/> |
| 35 | + <arg value="pip"/> |
| 36 | + <arg value="install"/> |
| 37 | + <arg value="--upgrade"/> |
| 38 | + <arg value="pip"/> |
| 39 | + </exec> |
| 40 | + |
| 41 | + <!-- Download PyQt4 --> |
| 42 | + <echo message="Download PyQt4"/> |
| 43 | + <property name="pyqt4.path" location="${bundle.srcdest}/pyqt4"/> |
| 44 | + <property file="${pyqt4.path}/pyqt4.properties"/> |
| 45 | + <mkdir dir="${pyqt4.path}"/> |
| 46 | + <get dest="${pyqt4.path}" src="${pyqt4}" skipexisting="true"/> |
| 47 | + |
| 48 | + <!-- Install PyQt4 --> |
| 49 | + <echo message="Install PyQt4"/> |
| 50 | + <exec executable="${pyqt4.path}/install.bat" dir="${pyqt4.path}" failonerror="true"/> |
| 51 | + <delete dir="${pyqt4.path}"/> |
| 52 | + |
| 53 | + <delete dir="${bundle.tmp.prep.path}/${bundle.folder}"/> |
| 54 | + <mkdir dir="${bundle.tmp.prep.path}/${bundle.folder}"/> |
| 55 | + <copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true"> |
| 56 | + <fileset dir="${bundle.srcdest}"/> |
| 57 | + </copy> |
| 58 | + <copy todir="${bundle.tmp.prep.path}/${bundle.folder}" overwrite="true"> |
| 59 | + <fileset dir="${bundle.path}" defaultexcludes="yes" excludes=" |
| 60 | + pyqt4/**" |
| 61 | + /> |
| 62 | + </copy> |
| 63 | + </target> |
| 64 | + |
| 65 | +</project> |
0 commit comments