This fixes several issues that prevented the Windows graphics drivers sraper from working correctly. For starters the version of 7-zip that ships with Debian 12 was not able to unpack a lot of the recent drivers, so I've added a build task that will generate a recent version of the program and adjusted the task to use that instead of the Debian one. Once Debian gets updated we can get rid of it. Additionally the script now has a cutoff date that will force it to rescrape all drivers that were scraped before the 15th of December 2024. Last but not least the Docker image of the task now installs the `file` command which was missing and caused the script to fail silently. Differential Revision: https://phabricator.services.mozilla.com/D232317
21 lines
445 B
Bash
Executable File
21 lines
445 B
Bash
Executable File
#!/bin/bash
|
|
set -x -e -v
|
|
|
|
# This script is for building 7-zip for Linux.
|
|
PROJECT=7zz
|
|
|
|
cd ${MOZ_FETCHES_DIR}/${PROJECT}
|
|
|
|
# Replace CR/LF line endings with Unix LF endings
|
|
find . -name "*.mak" -exec sed -i 's/\r$//' {} \;
|
|
pushd CPP/7zip/Bundles/Alone2
|
|
make -f ../../cmpl_gcc.mak
|
|
popd
|
|
|
|
mkdir ${PROJECT}
|
|
mv CPP/7zip/Bundles/Alone2/b/g/7zz ${PROJECT}/7zz
|
|
tar -acf ${PROJECT}.tar.zst ${PROJECT}
|
|
|
|
mkdir -p $UPLOAD_DIR
|
|
mv ${PROJECT}.tar.zst $UPLOAD_DIR
|