...
In most cases, no other configuration should be necessary.
...
WiX Toolset
The sbt-native-packager plugin is used by Daffodil to generate a Windows MSI installer. The plugin depends on WiX Toolset to do the actual MSI generation, which unfortunately only works on Windows. However, the release script must be run on Linux. Below are the steps necessary to configure a Linux system to use the WiX Toolset from the plugin using wine.
Install
wine
andwinetools
for you system, for example on Fedora, run:Code Block language bash $ dnf install wine winetools
- Run the command
winecfg
, and select Windows 10 as the Windows Version. Install
dotnet45
into wine using winetoolsCode Block language bash $ winetricks dotnet45
- Download
wix311-binaries.zip
from WiX Toolset version v3.11.1. Note that thewix311.exe
setup installer does not work on wine, so it is important to download the precompiled binaries. Extract that zip into a WIX specific directory:
Code Block language bash $ mkdir ~/wix311/ $ unzip wix311-binaries.zip -d ~/wix311/
Run the following command to set the
WIX
environment variable to that directory. It is reccommended that this also be added to~/.bashrc
:Code Block language bash $ export WIX=~/wix311/
Add symbolic links to the the
WIX
directory that point to a custom script in the Daffodil repository:Code Block $ ln -s ~/incubator-daffodil/scripts/wix_wine.sh $WIX/\\bin\\candle.exe $ ln -s ~/incubator-daffodil/scripts/wix_wine.sh $WIX/\\bin\\light.exe
Note that the
bin
, double-slashes, and.exe
are necessary, as they work around assumptions made the the plugin about running on a Windows environment.
Creating a Release Candidate
Warning |
---|
It is highly recommended that you create a new clone of the incubator-daffodil repository in the
|
Prior to creating the release candidate, the
version
setting inbuild.sbt
should contain the-SNAPSHOT
keyword. Create and merge a pull request to remove this keyword in preparation for a non-snapshot release..
From within the root of the Daffodil directory, execute the
scripts/release-candidate.sh
script, providing the release candidate label (e.g. rc1), the path to the root of apache-dist directory created above, that path the the root of the daffodil site repository, your Apache login credentials (e.g. for https://id.apache.org), and your long format gpg key id (e.g.gpg --list-keys --keyid-format long KEYID
). Run the script like so:Code Block language bash $ ./scripts/release-candidate.sh
The credentials are used to publish the jars to the Apache staging repo. You will also be asked to enter the password for your private gpg key created above to sign the published jars and the zip/tars . This script will perform the following actions:- Create a zip of the source
- Create tgz, zip, and rpm of the helper binary
- Create sha256 and sha512 checksum and ASCII armored detached signatures of the above files
- Move the above files to the Apache dist dev directory
- Create javadoc and scaladoc and move to the daffodil site repository docs directory for this release
- Stages jars/poms to https://repository.apache.org
- Create a signed git tag
- Create a zip of the source
- Once the script completes, you should verify all the files. This includes:
- Verify the checksums and signatures created in the Apache dist directories are correct
- Verify the staged jars/poms at https://repository.apache.org/ are correct. To do so, visit that url, login in the top right using id.apache.org credentials, select "Staging Repositories" on the left, and find the
orgapachedaffodil-XXXX
repository. Inspect the "Content"
tab to make sure the appropriate jars are uploaded and appear valid. - Verify the git tag is correct
- Verify the javadoc and scala docs in the daffodil site repository are correct
If any of the above do not look correct you will need to rerun the release candidate script; however, before doing so you must
- Delete the files in the Apache dist directory
- Drop the published jars/poms (at https://repository.apache.org - check the box for the staging repository just created and choose "Drop" at the top)
- Delete the git tag (git tag -d tagname).
- Delete the files in the daffodil site repository
- Fix whatever the issue is and repeat from step 2.
- Verify the checksums and signatures created in the Apache dist directories are correct
- After verifying all is correct, commit the changes:
Commit the files in Apache dist, for example:
Code Block language bash svn add dev/incubator/daffodil/* svn ci -m "Stage Apache Daffodil (incubating) 2.0.0-rc1"
- Close the published Nexus files by visiting https://repository.apache.org, log in, find the release in "Staging Repositories" and select "Close".
Push the git tag
Code Block language bash git push asf v2.0.0-rc1
...