aboutsummaryrefslogtreecommitdiff
path: root/binary_tarball/scripts/2_Download_Source_Code.sh
diff options
context:
space:
mode:
authorohfp <1813007-ohfp@users.noreply.gitlab.com>2020-03-06 21:17:06 +0100
committerohfp <1813007-ohfp@users.noreply.gitlab.com>2020-03-06 21:17:06 +0100
commit8378fcc076b44e46203e9fc1a50d57bac73a1d8c (patch)
treebe90108b8eb3c255a161ab7b06e4f2d1b79c6a6f /binary_tarball/scripts/2_Download_Source_Code.sh
parentfix appimage build (diff)
downloadlibrewolf-linux-8378fcc076b44e46203e9fc1a50d57bac73a1d8c.tar.gz
librewolf-linux-8378fcc076b44e46203e9fc1a50d57bac73a1d8c.tar.bz2
librewolf-linux-8378fcc076b44e46203e9fc1a50d57bac73a1d8c.zip
Partial rewrite of build process
Switching to an Arch based build process for easier maintenance and using specific runners for tasks where that might be necessary. Right now, parent/child pipelines for somewhat parallel builds for different architectures / semi-independent pak-builds don't seem to properly work yet due to `trigger:` not being recognized when it should, so that's not yet implemented.
Diffstat (limited to 'binary_tarball/scripts/2_Download_Source_Code.sh')
-rwxr-xr-xbinary_tarball/scripts/2_Download_Source_Code.sh14
1 files changed, 9 insertions, 5 deletions
diff --git a/binary_tarball/scripts/2_Download_Source_Code.sh b/binary_tarball/scripts/2_Download_Source_Code.sh
index ac022a1..27ab37c 100755
--- a/binary_tarball/scripts/2_Download_Source_Code.sh
+++ b/binary_tarball/scripts/2_Download_Source_Code.sh
@@ -3,9 +3,13 @@ printf "\n\n--------------------------------- SOURCE CODE DOWNLOAD -------------
# Setup Script Variables
SOURCE_FOLDER=$1;
-_SOURCE_CODE_URL="https://hg.mozilla.org/releases/mozilla-release";
-
-# Clone Firefox Source Code
-printf "\nCloning Firefox Source Code\n";
-hg clone $_SOURCE_CODE_URL $SOURCE_FOLDER;
+# hardcoded vor now, we'll parse the _pkgver later on, probably from tags
+pkgver="73.0.1"
+_SOURCE_CODE_URL="https://archive.mozilla.org/pub/firefox/releases/$pkgver/source/firefox-$pkgver.source.tar.xz";
+_SOURCE_TAR="firefox-${pkgver}.tar.xz"
+# Downloading and Extracting Firefox Source Code
+printf "\nDownloading Firefox Source Code\n";
+wget -O $_SOURCE_TAR $_SOURCE_CODE_URL
+mkdir -p $SOURCE_FOLDER
+tar -x --strip-components=1 -C $SOURCE_FOLDER -f $_SOURCE_TAR
bgstack15