Skip to content

Commit

Permalink
Store build source commit hashes in appimage
Browse files Browse the repository at this point in the history
  • Loading branch information
jplloyd committed Oct 7, 2019
1 parent 1721913 commit c7ff787
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions scripts/package-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ echo "Replace libgtk with patched version and bundle locales"
cd "$WORK_DIR"
rurl="https://github.com/jplloyd/mypaint-appimage/releases/download/aux_files"
aux_bundle_url="${rurl}/gtk3.22.30-mypaint-appimage-files.tar.gz"
wget "$aux_bundle_url" -O gtk-data.tar.gz
wget --no-verbose "$aux_bundle_url" -O gtk-data.tar.gz
tar xf gtk-data.tar.gz
cp -a lib/libgtk* -t "${APPDIR}/usr/lib/"

Expand Down Expand Up @@ -244,12 +244,20 @@ export VERSION_FULL
echo "VERSION: $VERSION"
echo "VERSION_FULL: $VERSION_FULL"

echo "${APP}" > "$APPDIR/VERSION.txt"
echo "${VERSION_FULL}" >> "$APPDIR/VERSION.txt"
echo "${APP}" > "$APPDIR/version.txt"
echo "${VERSION_FULL}" >> "$APPDIR/version.txt"

export NO_GLIBC_VERSION=true
export DOCKER_BUILD=true

# Store the exact commits the build is based on.
githash(){ git show -s --format="%H" HEAD; }
myp_hash="mypaint: $(cd "$APPIM_SOURCES/mypaint/" && githash)"
lib_hash="libmypaint: $(cd "$APPIM_SOURCES/libmypaint/" && githash)"
echo "$myp_hash
$lib_hash" > "${APPDIR}/build_source_commits.txt"


# Generate AppImage; this expects $ARCH, $APP and $VERSION to be set
generate_type2_appimage

Expand Down

0 comments on commit c7ff787

Please sign in to comment.