wiki:PackagingInstructionsforWindows

A script is available for Windows cygwin:

#!/usr/bin/bash
#   copypkg-win   - copy files for packaging - Windows

SRCDIR=/cygdrive/c/Users/Admin/Documents/ultrascan3
US2DIR=/cygdrive/c/Users/Admin/Documents/ultrascan2
QTBIN=/cygdrive/c/Qt/4.7.3/bin
DESTDIR=/cygdrive/c/dist
SYSTYPE=`uname -o`
if [ "${SYSTYPE}" != "Cygwin" ]; then
  echo "$0 requires a SYSTYPE (uname -o) of \"Cygwin\""
  echo "  SYSTYPE=${SYSTYPE}"
  exit 1
fi

SOMOBINS="us3_somo.exe us3_config.exe rasmol.exe \
 rasmol.hlp us_admin.exe us_somo10.dll"
QTDLLS="Qt3Support4.dll QtCLucene4.dll QtCore4.dll \
 QtGui4.dll QtHelp4.dll QtNetwork4.dll QtOpenGL4.dll \
 QtSql4.dll QtSvg4.dll QtWebKit4.dll QtXml4.dll"


echo "Copy lib DLLs to bin"
cp -p ${SRCDIR}/lib/*.dll ${SRCDIR}/bin/

echo "Copy somo bins to bin"
for F in ${SOMOBINS}; do
  echo "  cp -p ${SRCDIR}/somo/bin/${F} ${SRCDIR}/bin/"
  cp -p ${SRCDIR}/somo/bin/${F} ${SRCDIR}/bin/
done

echo "Copy bin,etc directories"
cp -rp ${SRCDIR}/bin ${DESTDIR}/
cp -rp ${SRCDIR}/etc ${DESTDIR}/
chmod -R a+rw ${DESTDIR}/etc

for F in ${DESTDIR}/etc/somo* ; do
  if [ `echo ${F} | grep -ic '.new$'` -eq 0 ]; then
    # Remove any */etc/somo* that does not end in '.new'
    rm -f ${F}
  fi
done

if [ ! -d ${DESTDIR}/somo ]; then
  echo "Creating ${DESTDIR}/somo"
  mkdir ${DESTDIR}/somo
else
  # Clear out somo/demo so only present contents are copied
  if [ -d ${DESTDIR}/somo/demo ]; then
    rm -rf ${DESTDIR}/somo/demo/*
  fi
fi

echo "Copy somo doc,demo,test directories"
cp -rp ${SRCDIR}/somo/doc ${DESTDIR}/somo/
cp -rp ${US2DIR}/somo/demo ${DESTDIR}/somo/
cp -rp ${US2DIR}/somo/test ${DESTDIR}/somo/

echo "Copy Qt DLLs to bin"
for F in ${QTDLLS}; do
  echo "  cp -p ${QTBIN}/${F} ${DESTDIR}/bin/"
  cp -p ${QTBIN}/${F} ${DESTDIR}/bin/
done
Last modified 6 years ago Last modified on Oct 31, 2012 4:42:23 PM