Changeset View
Changeset View
Standalone View
Standalone View
contrib/gitian-descriptors/gitian-win.yml
Show All 30 Lines | |||||
- "libevent-dev" | - "libevent-dev" | ||||
- "libssl-dev" | - "libssl-dev" | ||||
remotes: | remotes: | ||||
- "url": "https://github.com/Bitcoin-ABC/bitcoin-abc.git" | - "url": "https://github.com/Bitcoin-ABC/bitcoin-abc.git" | ||||
"dir": "bitcoin" | "dir": "bitcoin" | ||||
files: [] | files: [] | ||||
script: | | script: | | ||||
WRAP_DIR=$HOME/wrapped | WRAP_DIR=$HOME/wrapped | ||||
HOSTS="i686-w64-mingw32 x86_64-w64-mingw32" | HOSTS="x86_64-w64-mingw32" | ||||
# CMake toolchain file name differ from host name | # CMake toolchain file name differ from host name | ||||
declare -A CMAKE_TOOLCHAIN_FILE | declare -A CMAKE_TOOLCHAIN_FILE | ||||
CMAKE_TOOLCHAIN_FILE[i686-w64-mingw32]=Win32.cmake | |||||
CMAKE_TOOLCHAIN_FILE[x86_64-w64-mingw32]=Win64.cmake | CMAKE_TOOLCHAIN_FILE[x86_64-w64-mingw32]=Win64.cmake | ||||
INSTALL_COMPONENTS="bitcoind bitcoin-qt" | INSTALL_COMPONENTS="bitcoind bitcoin-qt" | ||||
FAKETIME_HOST_PROGS="ar ranlib nm windres strip objcopy" | FAKETIME_HOST_PROGS="ar ranlib nm windres strip objcopy" | ||||
FAKETIME_PROGS="date makensis zip" | FAKETIME_PROGS="date makensis zip" | ||||
HOST_CFLAGS="-O2 -g" | HOST_CFLAGS="-O2 -g" | ||||
HOST_CXXFLAGS="-O2 -g" | HOST_CXXFLAGS="-O2 -g" | ||||
▲ Show 20 Lines • Show All 107 Lines • ▼ Show 20 Lines | script: | | ||||
tar xf ../$SOURCEDIST | tar xf ../$SOURCEDIST | ||||
find bitcoin-abc-* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST | find bitcoin-abc-* | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ../$SOURCEDIST | ||||
mkdir -p $OUTDIR/src | mkdir -p $OUTDIR/src | ||||
cp ../$SOURCEDIST $OUTDIR/src | cp ../$SOURCEDIST $OUTDIR/src | ||||
popd | popd | ||||
# Allow extra cmake option to be specified for each host | # Allow extra cmake option to be specified for each host | ||||
declare -A CMAKE_EXTRA_OPTIONS | declare -A CMAKE_EXTRA_OPTIONS | ||||
CMAKE_EXTRA_OPTIONS[i686-w64-mingw32]="-DCPACK_PACKAGE_FILE_NAME=${DISTNAME}-win32-setup-unsigned" | |||||
CMAKE_EXTRA_OPTIONS[x86_64-w64-mingw32]="-DCPACK_PACKAGE_FILE_NAME=${DISTNAME}-win64-setup-unsigned" | CMAKE_EXTRA_OPTIONS[x86_64-w64-mingw32]="-DCPACK_PACKAGE_FILE_NAME=${DISTNAME}-win64-setup-unsigned" | ||||
ORIGPATH="$PATH" | ORIGPATH="$PATH" | ||||
# Extract the release tarball into a dir for each host and build | # Extract the release tarball into a dir for each host and build | ||||
for i in ${HOSTS}; do | for i in ${HOSTS}; do | ||||
export PATH=${BASEPREFIX}/${i}/native/bin:${WRAP_DIR}:${ORIGPATH} | export PATH=${BASEPREFIX}/${i}/native/bin:${WRAP_DIR}:${ORIGPATH} | ||||
mkdir -p distsrc-${i} | mkdir -p distsrc-${i} | ||||
cd distsrc-${i} | cd distsrc-${i} | ||||
Show All 31 Lines | for i in ${HOSTS}; do | ||||
find ${DISTNAME} -name "*.dbg" -type f | sort | zip -X@ ${OUTDIR}/${DISTNAME}-${i}-debug.zip | find ${DISTNAME} -name "*.dbg" -type f | sort | zip -X@ ${OUTDIR}/${DISTNAME}-${i}-debug.zip | ||||
cd ../../ | cd ../../ | ||||
rm -rf distsrc-${i} | rm -rf distsrc-${i} | ||||
done | done | ||||
cd $OUTDIR | cd $OUTDIR | ||||
find . -name "*-setup-unsigned.exe" | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-win-unsigned.tar.gz | find . -name "*-setup-unsigned.exe" | sort | tar --no-recursion --mode='u+rw,go+r-w,a+X' --owner=0 --group=0 -c -T - | gzip -9n > ${OUTDIR}/${DISTNAME}-win-unsigned.tar.gz | ||||
mv ${OUTDIR}/${DISTNAME}-x86_64-*-debug.zip ${OUTDIR}/${DISTNAME}-win64-debug.zip | mv ${OUTDIR}/${DISTNAME}-x86_64-*-debug.zip ${OUTDIR}/${DISTNAME}-win64-debug.zip | ||||
mv ${OUTDIR}/${DISTNAME}-i686-*-debug.zip ${OUTDIR}/${DISTNAME}-win32-debug.zip | |||||
mv ${OUTDIR}/${DISTNAME}-x86_64-*.zip ${OUTDIR}/${DISTNAME}-win64.zip | mv ${OUTDIR}/${DISTNAME}-x86_64-*.zip ${OUTDIR}/${DISTNAME}-win64.zip | ||||
mv ${OUTDIR}/${DISTNAME}-i686-*.zip ${OUTDIR}/${DISTNAME}-win32.zip |