summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-wine.sh
blob: e292fd2e1e13ca4bc97ac3b7b5d0ecd63fdd9f85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash
set -x -e -v

WORKSPACE=$HOME/workspace
INSTALL_DIR=$WORKSPACE/wine

mkdir -p $INSTALL_DIR
mkdir -p $WORKSPACE/build/wine
mkdir -p $WORKSPACE/build/wine64

cd $WORKSPACE/build/wine64
$MOZ_FETCHES_DIR/wine-source/configure --enable-win64 --without-x --without-freetype --prefix=$INSTALL_DIR/
make -j$(nproc)

cd $WORKSPACE/build/wine
$MOZ_FETCHES_DIR/wine-source/configure --with-wine64=../wine64 --without-x --without-freetype --prefix=$INSTALL_DIR/
make -j$(nproc)
make install

cd $WORKSPACE/build/wine64
make install

# --------------

cd $WORKSPACE/
tar caf wine.tar.zst wine

mkdir -p $UPLOAD_DIR
cp wine.tar.* $UPLOAD_DIR