fleet/tools/wix-docker/make-aliases.sh
Zach Wasserman 42c7933b22
Add WiX Dockerfile and update image name (#2548)
Use a different base image and newer version of Wine to try to mitigate
crashes experienced by users in #2527.
2021-10-20 15:30:46 -07:00

18 lines
431 B
Bash
Executable File

#!/bin/sh
# This script creates shell scripts that simulate adding all of the WiX binaries
# to the PATH. `wine /home/wine/wix/light.exe will be able to be called with
# just `light`.
mkdir -p /home/wine/bin
binpath=/home/wine/bin
for exe in $(ls /home/wine/wix | grep .exe$); do
name=$(echo $exe | cut -d '.' -f 1)
cat > $binpath/$name << EOF
#!/bin/sh
wine /home/wine/wix/$exe \$@
EOF
chmod +x $binpath/$name
done