build/linux: Print info message about which archs will be distributed
All our Linux dist scripts are multi-arch aware so we need to be clear like on windows scripts.
This commit is contained in:
parent
69e9efe534
commit
a3aca3c171
3 changed files with 37 additions and 6 deletions
|
|
@ -115,6 +115,17 @@ else
|
|||
export CUSTOM_GIMP_VERSION="${GIMP_VERSION}-${REVISION}"
|
||||
fi
|
||||
printf "(INFO): App ID: $APP_ID | Version: $CUSTOM_GIMP_VERSION\n"
|
||||
|
||||
supported_archs=$(find . -maxdepth 1 -iname "AppDir*")
|
||||
if [ "$supported_archs" = '' ]; then
|
||||
printf "(INFO): Arch: $(uname -m)\n"
|
||||
elif echo "$supported_archs" | grep -q 'aarch64' && ! echo "$supported_archs" | grep -q 'x86_64'; then
|
||||
printf '(INFO): Arch: aarch64\n'
|
||||
elif ! echo "$supported_archs" | grep -q 'aarch64' && echo "$supported_archs" | grep -q 'x86_64'; then
|
||||
printf '(INFO): Arch: x86_64\n'
|
||||
elif echo "$supported_archs" | grep -q 'aarch64' && echo "$supported_archs" | grep -q 'x86_64'; then
|
||||
printf '(INFO): Arch: aarch64 and x86_64\n'
|
||||
fi
|
||||
printf "\e[0Ksection_end:`date +%s`:apmg_info\r\e[0K\n"
|
||||
|
||||
|
||||
|
|
@ -442,7 +453,7 @@ fi
|
|||
|
||||
|
||||
# 4. PREPARE .APPIMAGE-SPECIFIC "SOURCE"
|
||||
for APP_DIR in $(find . -maxdepth 1 -iname "AppDir*"); do
|
||||
for APP_DIR in $supported_archs; do
|
||||
export ARCH=$(echo $APP_DIR | sed -e 's|AppDir-||' -e 's|./||')
|
||||
printf "\e[0Ksection_start:`date +%s`:${ARCH}_source[collapsed=true]\r\e[0KMaking AppImage assets for $ARCH\n"
|
||||
export USR_DIR="$APP_DIR/usr"
|
||||
|
|
|
|||
|
|
@ -27,12 +27,22 @@ printf "\e[0Ksection_end:`date +%s`:flat_tlkt\r\e[0K\n"
|
|||
|
||||
|
||||
# GLOBAL INFO
|
||||
for FLATPAK in $(find . -maxdepth 1 -iname "*.flatpak"); do
|
||||
FLATPAK=$(echo "$FLATPAK" | sed 's|^\./temp_||')
|
||||
ARCH=$(echo "$FLATPAK" | sed 's/.*-\([^-]*\)\.flatpak/\1/')
|
||||
printf "\e[0Ksection_start:`date +%s`:flat_info\r\e[0KGetting flatpak global info\n"
|
||||
supported_archs=$(find . -maxdepth 1 -iname "*.flatpak")
|
||||
if echo "$supported_archs" | grep -q 'aarch64' && ! echo "$supported_archs" | grep -q 'x86_64'; then
|
||||
printf '(INFO): Arch: aarch64\n'
|
||||
elif ! echo "$supported_archs" | grep -q 'aarch64' && echo "$supported_archs" | grep -q 'x86_64'; then
|
||||
printf '(INFO): Arch: x86_64\n'
|
||||
elif echo "$supported_archs" | grep -q 'aarch64' && echo "$supported_archs" | grep -q 'x86_64'; then
|
||||
printf '(INFO): Arch: aarch64 and x86_64\n'
|
||||
fi
|
||||
printf "\e[0Ksection_end:`date +%s`:flat_info\r\e[0K\n"
|
||||
|
||||
|
||||
# GIMP FILES AS REPO (FOR FURTHER PUBLISHING)
|
||||
for FLATPAK in $supported_archs; do
|
||||
FLATPAK=$(echo "$FLATPAK" | sed 's|^\./temp_||')
|
||||
ARCH=$(echo "$FLATPAK" | sed 's/.*-\([^-]*\)\.flatpak/\1/')
|
||||
if [ "$GITLAB_CI" ]; then
|
||||
# Extract previously exported OSTree repo/
|
||||
if [ -d 'repo' ]; then
|
||||
|
|
|
|||
|
|
@ -22,11 +22,21 @@ printf "\e[0Ksection_end:`date +%s`:snap_tlkt\r\e[0K\n"
|
|||
|
||||
|
||||
# Global info
|
||||
for SNAP in $(find . -maxdepth 1 -iname "*.snap"); do
|
||||
SNAP=$(echo "$SNAP" | sed 's|^\./temp_||')
|
||||
printf "\e[0Ksection_start:`date +%s`:snap_info\r\e[0KGetting snap global info\n"
|
||||
supported_archs=$(find . -maxdepth 1 -iname "*.snap")
|
||||
if echo "$supported_archs" | grep -q 'arm64' && ! echo "$supported_archs" | grep -q 'amd64'; then
|
||||
printf '(INFO): Arch: arm64\n'
|
||||
elif ! echo "$supported_archs" | grep -q 'arm64' && echo "$supported_archs" | grep -q 'amd64'; then
|
||||
printf '(INFO): Arch: amd64\n'
|
||||
elif echo "$supported_archs" | grep -q 'arm64' && echo "$supported_archs" | grep -q 'amd64'; then
|
||||
printf '(INFO): Arch: arm64 and amd64\n'
|
||||
fi
|
||||
printf "\e[0Ksection_end:`date +%s`:snap_info\r\e[0K\n"
|
||||
|
||||
|
||||
# Finish .snap to be exposed as artifact
|
||||
for SNAP in $supported_archs; do
|
||||
SNAP=$(echo "$SNAP" | sed 's|^\./temp_||')
|
||||
printf "\e[0Ksection_start:`date +%s`:${SNAP}_making[collapsed=true]\r\e[0KFinishing ${SNAP}\n"
|
||||
mv temp_${SNAP} ${SNAP}
|
||||
printf "(INFO): Suceeded. To test this build, install it from the artifact with: sudo snap install --dangerous ${SNAP}\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue