-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to kubo. Create source archive code correctly with version. M…
…ove to upper case options.
- Loading branch information
Showing
10 changed files
with
67 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/usr/bin/env bash | ||
# By: Melroy van den Berg | ||
# Description: Create custom source code archive with version.txt | ||
# Depends on one environment variable: $CI_COMMIT_TAG | ||
|
||
if [ -z ${CI_COMMIT_TAG} ]; then | ||
echo "ERROR: CI_COMMIT_TAG env. variable is not set! Do not build archive. Exiting..." | ||
exit 0 | ||
fi | ||
# Create version.txt | ||
echo -n "${CI_COMMIT_TAG}" > version.txt | ||
# Create source archive (tar.gz) | ||
git archive --format=tar.gz --output=build_prod/libreweb-browser-source-${CI_COMMIT_TAG}.tar.gz --add-file=version.txt HEAD |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
# By: Melroy van den Berg | ||
# Description: Automatically download and unzip the IPFS CLI (Kubo) binaries for Linux & Windows | ||
|
||
## Provide the Kubo version below ## | ||
KUBO_VERSION=0.26.0 | ||
|
||
############################## | ||
# Leave the code alone below # | ||
############################## | ||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" | ||
|
||
# Download & untar/zip Kubo | ||
echo "INFO: Start downloading Kubo (v${KUBO_VERSION})..." | ||
wget --quiet "https://dist.ipfs.tech/kubo/v${KUBO_VERSION}/kubo_v${KUBO_VERSION}_darwin-amd64.tar.gz" -O "$CURRENT_DIR/kubo_darwin.tar.gz" | ||
wget --quiet "https://dist.ipfs.tech/kubo/v${KUBO_VERSION}/kubo_v${KUBO_VERSION}_linux-amd64.tar.gz" -O "$CURRENT_DIR/kubo_linux.tar.gz" | ||
wget --quiet "https://dist.ipfs.tech/kubo/v${KUBO_VERSION}/kubo_v${KUBO_VERSION}_windows-amd64.zip" -O "$CURRENT_DIR/kubo_windows.zip" | ||
|
||
# Extract on root level of the git repo | ||
echo "INFO: Extracting Kubo..." | ||
tar -xzf "$CURRENT_DIR/kubo_darwin.tar.gz" kubo/ipfs -C "$CURRENT_DIR/../" | ||
# rename darwin binary | ||
mv "$CURRENT_DIR/../kubo/ipfs" "$CURRENT_DIR/../kubo/ipfs-darwin" | ||
tar -xzf "$CURRENT_DIR/kubo_linux.tar.gz" kubo/ipfs -C "$CURRENT_DIR/../" | ||
unzip -q -o "$CURRENT_DIR/kubo_windows.zip" kubo/ipfs.exe -d "$CURRENT_DIR/../" | ||
|
||
# Clean-up | ||
echo "INFO: Clean up" | ||
rm -rf "$CURRENT_DIR/kubo_darwin.tar.gz" | ||
rm -rf "$CURRENT_DIR/kubo_linux.tar.gz" | ||
rm -rf "$CURRENT_DIR/kubo_windows.zip" |