Skip to content

Instantly share code, notes, and snippets.

@promi
Last active April 6, 2016 00:18
Show Gist options
  • Save promi/57c61b58c095b51a90ab7013f004bfd6 to your computer and use it in GitHub Desktop.
Save promi/57c61b58c095b51a90ab7013f004bfd6 to your computer and use it in GitHub Desktop.
candle + light tests
#!/bin/bash
# Enable 32 bit
sudo dpkg --add-architecture i386
sudo apt update
# Install unzip and 32 bit WINE
sudo apt install unzip wine32 -y
# Add meta package for WINE (optional)
sudo apt install wine -y
# Install WiX in its own wine prefix
cd ~
wget -c "https://download-codeplex.sec.s-msft.com/Download/Release?ProjectName=wix&DownloadId=119162&FileTime=129168985393700000&Build=21031" -O wix3-binaries.zip
mkdir -p ht/wix-wine/drive_c/wix
export WINEPREFIX=/home/$USER/ht/wix-wine
export WINEARCH=win32
cd ~/ht/wix-wine/drive_c/wix
unzip ~/wix3-binaries.zip
# Get WINE Mono
mkdir -p ~/.cache/wine/
wget -c "http://source.winehq.org/winemono.php?v=0.0.8" -O ~/.cache/wine/wine-mono-0.0.8.msi
wine msiexec /i ~/.cache/wine/wine-mono-0.0.8.msi
# Get HyperThrust test msi sources
cd ~
wget -c http://files.teneon.de/wix-src.tar.xz
cd ~/ht
tar xf ../wix-src.tar.xz
# Build MSI
cd ~/ht/wix-src
wine "C:\\wix\\candle.exe" Product2.wxs
wine "C:\\wix\\light.exe" -sval Product2.wixobj
chmod 644 Product2.msi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment