Attempt to streamline the fdroid repo build process a bit better.
This commit is contained in:
@@ -44,7 +44,7 @@ ENV REPO_ICON="$REPO_ICON"
|
||||
RUN sed -i "$ a repo_url: $REPO_DOMAIN/fdroid/repo" "$FDROID/config.yml"
|
||||
RUN sed -i "$ a repo_name: $REPO_NAME" "$FDROID/config.yml"
|
||||
|
||||
RUN fdroid update
|
||||
#RUN fdroid update
|
||||
|
||||
# Advanced Variables #
|
||||
|
||||
@@ -114,13 +114,16 @@ RUN bash -c 'if [[ -n "$FILE18" ]]; then wget -P "$REPO" "$FILE18"; fi'
|
||||
RUN bash -c 'if [[ -n "$FILE19" ]]; then wget -P "$REPO" "$FILE19"; fi'
|
||||
|
||||
# Move any downloaded metadata files to the correct folder.
|
||||
RUN cp -v "$REPO"/*.yml "$REPO"/../metadata
|
||||
RUN cp -v "$REPO"/*.yml "$REPO"/../metadata || \
|
||||
echo "No YML files to copy."
|
||||
|
||||
# Move any downloaded icons to the proper folder.
|
||||
RUN cp -v "$REPO"/*.png "$REPO"/icons/
|
||||
RUN cp -v "$REPO"/*.png "$REPO"/icons/ || \
|
||||
echo "No PNG files to copy."
|
||||
|
||||
# If the icon variable is set, add it to the config file before updating again.
|
||||
RUN [[ ! -z "$REPO_ICON" ]] && sed -i "$ a repo_icon: $REPO_ICON" "$FDROID/config.yml"
|
||||
RUN [[ ! -z "$REPO_ICON" ]] && \
|
||||
sed -i "$ a repo_icon: $REPO_ICON" "$FDROID/config.yml"
|
||||
|
||||
RUN fdroid update -c
|
||||
|
||||
|
||||
Reference in New Issue
Block a user