updated icons and wiki generation

This commit is contained in:
Agel committed 2026-03-18 20:05:05 +01:00
1 parent f82bb6305b
commit cb48341eea
16 files changed
+12 -12

No files matched your search

+6 -11
View File
@@ -117,13 +117,14 @@ update-wiki:
fi
- 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}/dist/Asteria-x86_64.AppImage?job=package-linux"
- WINDOWS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download?job=package-windows"
- WIKI_URL="${API_URL}/wikis/home"
- ARTIFACTS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download"
- LINUX_URL="${ARTIFACTS_URL}?job=package-linux"
- WINDOWS_URL="${ARTIFACTS_URL}?job=package-windows"
- |
HTTP_CODE=$(curl -s -o /tmp/wiki.json -w '%{http_code}' \
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
"${API_URL}/wikis/Asteria")
"${WIKI_URL}")
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}" \
@@ -144,13 +145,7 @@ update-wiki:
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
--header "Content-Type: application/json" \
--data "$(jq -n --arg c "${UPDATED}" '{content:$c}')" \
"${API_URL}/wikis/Asteria"
elif [ "${HTTP_CODE}" = "404" ]; then
curl -sf -X POST \
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
--header "Content-Type: application/json" \
--data "$(jq -n --arg t "Asteria" --arg c "${NEW_SECTION}" '{title:$t,content:$c}')" \
"${API_URL}/wikis"
"${WIKI_URL}"
else
echo "ERROR: GitLab API returned HTTP ${HTTP_CODE}"
cat /tmp/wiki.json
+4
View File
@@ -40,6 +40,10 @@ set(SOURCES
src/backend/formats/TxtReader.cpp
)
if(WIN32)
list(APPEND SOURCES src/asteria.rc)
endif()
# Executable
qt_add_executable(asteria-qt ${SOURCES})
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

+1 -1
View File
@@ -5,4 +5,4 @@ Comment=Cross-platform book reader
Exec=asteria-qt
Icon=asteria-qt
Categories=Office;Viewer;
MimeType=application/epub+zip;text/plain;application/x-fictionbook+xml;
MimeType=text/plain;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 29 KiB

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 116 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.9 KiB

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 502 KiB

After

Width:  |  Height:  |  Size: 538 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 708 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 134 KiB

After

Width:  |  Height:  |  Size: 1.0 MiB

+1
View File
@@ -0,0 +1 @@
IDI_ICON1 ICON DISCARDABLE "src/assets/asteria-qt.ico"