Add portable packaging: AppImage for Linux, zip for Windows
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
5 files changed
+210
-5
No files matched your search
+38
-5
@@ -1,5 +1,6 @@
|
||||
stages:
|
||||
- build
|
||||
- package
|
||||
- wiki
|
||||
|
||||
variables:
|
||||
@@ -67,13 +68,45 @@ build-windows:
|
||||
expire_in: 1 day
|
||||
when: on_success
|
||||
|
||||
# ── Package Linux as AppImage ─────────────────────────────────────────────
|
||||
package-linux:
|
||||
stage: package
|
||||
image: "${DOCKER_IMAGE}"
|
||||
needs:
|
||||
- build-linux
|
||||
script:
|
||||
- chmod +x packaging/package-linux.sh
|
||||
- packaging/package-linux.sh build-linux "${QT_LINUX_DIR}" dist
|
||||
artifacts:
|
||||
name: "asteria-qt-linux-appimage-${CI_COMMIT_SHORT_SHA}"
|
||||
paths:
|
||||
- dist/*.AppImage
|
||||
expire_in: 1 day
|
||||
when: on_success
|
||||
|
||||
# ── Package Windows as portable zip ──────────────────────────────────────────
|
||||
package-windows:
|
||||
stage: package
|
||||
image: "${DOCKER_IMAGE}"
|
||||
needs:
|
||||
- build-windows
|
||||
script:
|
||||
- chmod +x packaging/package-windows.sh
|
||||
- packaging/package-windows.sh build-windows "${QT_WINDOWS_DIR}" "${MINGW_SYSROOT}" dist
|
||||
artifacts:
|
||||
name: "asteria-qt-windows-portable-${CI_COMMIT_SHORT_SHA}"
|
||||
paths:
|
||||
- dist/asteria-qt-windows.zip
|
||||
expire_in: 1 day
|
||||
when: on_success
|
||||
|
||||
# ── Update wiki with latest dev build links ────────────────────────────────────
|
||||
update-wiki:
|
||||
stage: wiki
|
||||
image: alpine:latest
|
||||
needs:
|
||||
- build-linux
|
||||
- build-windows
|
||||
- package-linux
|
||||
- package-windows
|
||||
before_script:
|
||||
- apk add --no-cache curl jq
|
||||
script:
|
||||
@@ -85,14 +118,14 @@ update-wiki:
|
||||
- PROJECT_URL="https://gitlab.com/asteria-bookreader/asteria-qt"
|
||||
- API_URL="https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}"
|
||||
- ARTIFACTS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw"
|
||||
- LINUX_URL="${ARTIFACTS_URL}/build-linux/asteria-qt?job=build-linux"
|
||||
- WINDOWS_URL="${ARTIFACTS_URL}/build-windows/asteria-qt.exe?job=build-windows"
|
||||
- LINUX_URL="${ARTIFACTS_URL}/dist/Asteria-x86_64.AppImage?job=package-linux"
|
||||
- WINDOWS_URL="${ARTIFACTS_URL}/dist/asteria-qt-windows.zip?job=package-windows"
|
||||
- |
|
||||
HTTP_CODE=$(curl -s -o /tmp/wiki.json -w '%{http_code}' \
|
||||
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
|
||||
"${API_URL}/wikis/Asteria")
|
||||
|
||||
NEW_SECTION=$(printf '## Latest dev builds\n\n> Updated automatically by pipeline [#%s](%s) from `%s` @ %s\n\n| Platform | Download |\n|----------|----------|\n| Linux (x86_64) | [asteria-qt](%s) |\n| Windows (x86_64) | [asteria-qt.exe](%s) |' \
|
||||
NEW_SECTION=$(printf '## Latest dev builds\n\n> Updated automatically by pipeline [#%s](%s) from `%s` @ %s\n\n| Platform | Download |\n|----------|----------|\n| Linux (x86_64) | [AppImage](%s) |\n| Windows (x86_64) | [Portable zip](%s) |' \
|
||||
"${CI_PIPELINE_ID}" "${CI_PIPELINE_URL}" "${CI_COMMIT_REF_NAME}" "${CI_COMMIT_SHORT_SHA}" \
|
||||
"${LINUX_URL}" "${WINDOWS_URL}")
|
||||
|
||||
|
||||
Reference in new issue
Block a user