summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/build-makecab.sh
diff options
context:
space:
mode:
Diffstat (limited to 'taskcluster/scripts/misc/build-makecab.sh')
-rwxr-xr-xtaskcluster/scripts/misc/build-makecab.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/build-makecab.sh b/taskcluster/scripts/misc/build-makecab.sh
new file mode 100755
index 0000000000..4d8d2ade3e
--- /dev/null
+++ b/taskcluster/scripts/misc/build-makecab.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+set -x -e -v
+
+export PATH="$MOZ_FETCHES_DIR/rustc/bin:$PATH"
+
+cd $MOZ_FETCHES_DIR/rust-makecab
+
+cargo build --verbose --release
+
+mkdir makecab
+cp target/release/makecab makecab/
+tar -c makecab | $GECKO_PATH/taskcluster/scripts/misc/zstdpy > makecab.tar.zst
+mkdir -p $UPLOAD_DIR
+cp makecab.tar.zst $UPLOAD_DIR