12.6.3 BUILD THE OFFICIAL RELEASE
12.6.3.1 Do a clean SVN checkout
svn co http://dev.outerthought.org/svn/outerthought_daisy/trunk/daisy {daisy-src}
12.6.3.2 Prepare for building an official release
echo "remove-daisy-mount=true" > {daisy-src}/applications/daisywiki/runtime/build.properties
12.6.3.3 Build the daisybuild-maven-plugin & artifacter tool
cd {daisy-src}/tools/daisybuild-maven-plugin
mvn clean install
cd {daisy-src}/tools/artifacter
mvn clean install
12.6.3.4 Change the Daisy version
Use the artifacter like this:
cd {daisy-src}
tools/artifacter/target/artifacter-dev -g daisy:2.4
12.6.3.5 Rebuild daisybuild-maven-plugin
This is only necessary because 'mvn clean' in the next step
would fail to find the daisybuild-maven-plugin.
You could also manually remove all existing target directories.
cd {daisy-src}/tools/daisybuild-maven-plugin
mvn clean install
12.6.3.6 Restart using an empty maven repository
mvn clean rm -rf $HOME/.m2/repository
12.6.3.7 Build everything
mvn -Pcocoon.download,cocoon.get,webapp -Djarsigner.storepass={your-keystore-password} install
12.6.3.8 Run the unit tests
cd repository/test mvn test
12.6.3.9 Build the binary distribution
cd {daisy-src}/distro/core
mvn process-resources
12.6.3.10 Build the debian package
cd {daisy-src}/distro/debian
Follow the instructions in the README.txt file.
12.6.3.11 Test the upgrade process
- Do a minimal installation using the previously released Daisy version (repository + wiki instance with one site).
- Follow the upgrade procedures using the binary distribution that you just built. This should go flawlessly.
12.6.3.12 Package the binary distributions
On linux:
cd {daisy-src}/distro/core/target
mv daisy daisy-2.4
tar czf daisy-2.4.tar.gz daisy-2.4
On windows:
(First follow all the above steps to build the binary distribution on Windows. Simply creating a zip file based on the linux-build won't do: We want windows (CR+LF) line-endings).
cd {daisy-src}\distro\core\target
ren daisy daisy-2.4
- Create daisy-2.4.zip
- Use 7zip to create daisy-2.4-autoextract.exe
Follow the instructions in {daisy-src}/distro/windows-installer/README.txt
- You should rename the installers to daisy-2.4-installer.exe and daisy-2.4-installer-bundled-with-java-jai-mysql.exe
Previous