-
-
Save ElXreno/a8178fdd93947dac3d6fa0c3bf2980f3 to your computer and use it in GitHub Desktop.
Flathub builder wrapper script
This file contains hidden or 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
#!/usr/bin/bash | |
set -e | |
if [ "$1" = "" ]; then | |
echo "Usage: $0 MANIFEST_FILE" | |
exit 1 | |
fi | |
MANIFEST_FILE="$1" | |
LOG_PATTERN="`date +%H%M%S`-$MANIFEST_FILE-build.log" | |
LOG_PATH="$HOME/.flatpak-builder/logs/`date +%Y/%m/%d`" | |
mkdir -p $LOG_PATH | |
echo "Log file: file://$LOG_PATH/$LOG_PATTERN" | |
flatpak-builder --repo=$HOME/projects/linux/flatpak/repo --force-clean --ccache --state-dir=$HOME/.flatpak-builder build-dir $@ 2>&1 | tee $LOG_PATH/$LOG_PATTERN | |
echo "Log file: file://$LOG_PATH/$LOG_PATTERN" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment