Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-10801: Moved sftp cache Wix Tools install from jenkins-vms to package-msi script (3.21) #1331

Merged
merged 2 commits into from
Oct 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions build-scripts/package-msi
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,40 @@

WIXPATH="$HOME/wix"

# First see if wix tools are installed, if not, do so
if [ -f "$WIXPATH/candle.exe" ] && [ -f "$WIXPATH/light.exe" ]; then
echo "Wix Tools are installed at $WIXPATH"
else
(
# Fetch some prerequisites
cd /tmp || exit
echo '
get /export/images/windows/wix310-binaries.zip
get /export/images/windows/wine-folder.tar.xz
' | sftp -b - [email protected]

# check checksums
sha256sum -c - <<EOF || exit 42
493145b3fac22bdf8c55142a9f96ef8136d56b38d78a2322f13f1ba11f9cf2f8 wix310-binaries.zip
3510fd8c4ecb4a9c479dfe43849183c666f9e41b019fc7135dc8735d0032d16e wine-folder.tar.xz
EOF
# Install Wix tools
mkdir -p "$WIXPATH"
cd "$WIXPATH" || exit
unzip /tmp/wix310-binaries.zip
chown "$USER":"$USER" -R "$WIXPATH"

# Extract pre-installed Wine .NET tree
# This file was generated by using a fresh Wine installation and running "winetricks dotnet45".
cd "$HOME" || exit
tar -xJf /tmp/wine-folder.tar.xz
chown "$USER":"$USER" -R "$HOME"/.wine

# Prevent .exe files from auto launching with wine (breaks cross compile checks).
sudo update-binfmts --package wine --remove wine /usr/bin/wine
)
fi

# Wine can handle these tools under the following conditions:
# * You must use Wine 32-bit (wine:i386)
# * The host must have run "winetricks dotnet45" and clicked through all the
Expand Down
Loading