Commit f7eb3c9b authored by azubieta's avatar azubieta
Browse files

Merge branch 'publis_zsync' into 'development'

Publis zsync

See merge request dfn2/pling-store!12
parents cc74a851 05b12019
...@@ -8,5 +8,5 @@ appimage: ...@@ -8,5 +8,5 @@ appimage:
- ./scripts/package appimage - ./scripts/package appimage
artifacts: artifacts:
paths: paths:
- build_*/pling-store*.AppImage - build_*/pling-store*.AppImage*
expire_in: 2 days expire_in: 2 days
...@@ -2,9 +2,18 @@ ...@@ -2,9 +2,18 @@
PKGNAME='pling-store' PKGNAME='pling-store'
PKGVER='5.0.1' PKGVER='5.0.1'
PKGREL='1'
UPDINFO='zsync|http://dl.opendesktop.org/api/files/download/id/1532435039/as/latest/ocs-store-x86_64.AppImage.zsync' # Only timestamp development branches
if [ "${CI_COMMIT_REF_SLUG}" != "master" ]; then
PKGREL=dev-${CI_COMMIT_SHORT_SHA}-$(date +"%Y%m%d-%H%M%S")
else
PKGREL='1'
fi
APPIMAGE_FILE_NAME=${PKGNAME}-${PKGVER}-${PKGREL}-x86_64.AppImage
ZSYNC_FILE_NAME=${PKGNAME}-${CI_COMMIT_REF_SLUG}-x86_64.AppImage.zsync
UPDINFO="zsync|https://www.opencode.net/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}/-/jobs/artifacts/${CI_COMMIT_REF_SLUG}/raw/build_pling-store/${ZSYNC_FILE_NAME}?job=appimage"
APPDIR="${PKGNAME}.AppDir" APPDIR="${PKGNAME}.AppDir"
make make
...@@ -31,9 +40,8 @@ chmod 755 appimagetool ...@@ -31,9 +40,8 @@ chmod 755 appimagetool
./appimagetool --appimage-extract ./appimagetool --appimage-extract
./squashfs-root/AppRun -u "${UPDINFO}" ${APPDIR} ./squashfs-root/AppRun -u "${UPDINFO}" ${APPDIR}
# Only timestamp development branches # Fix url in zsync file
if [ "${CI_COMMIT_REF_SLUG}" != "master" ]; then sed -i "/^URL:.*$/c\URL: ${APPIMAGE_FILE_NAME}?job=appimage" *-x86_64.AppImage.zsync
PKGREL=dev-${CI_COMMIT_SHORT_SHA}-$(date +"%Y%m%d-%H%M%S")
fi
mv *-x86_64.AppImage ../${PKGNAME}-${PKGVER}-${PKGREL}-x86_64.AppImage mv *-x86_64.AppImage ../${APPIMAGE_FILE_NAME}
mv *-x86_64.AppImage.zsync ../${ZSYNC_FILE_NAME}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment