updated icons and wiki generation
No files matched your search
@@ -117,13 +117,14 @@ update-wiki:
|
|||||||
fi
|
fi
|
||||||
- PROJECT_URL="https://gitlab.com/asteria-bookreader/asteria-qt"
|
- PROJECT_URL="https://gitlab.com/asteria-bookreader/asteria-qt"
|
||||||
- API_URL="https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}"
|
- API_URL="https://gitlab.com/api/v4/projects/${CI_PROJECT_ID}"
|
||||||
- ARTIFACTS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/raw"
|
- WIKI_URL="${API_URL}/wikis/home"
|
||||||
- LINUX_URL="${ARTIFACTS_URL}/dist/Asteria-x86_64.AppImage?job=package-linux"
|
- ARTIFACTS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download"
|
||||||
- WINDOWS_URL="${PROJECT_URL}/-/jobs/artifacts/${CI_COMMIT_REF_NAME}/download?job=package-windows"
|
- 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}' \
|
HTTP_CODE=$(curl -s -o /tmp/wiki.json -w '%{http_code}' \
|
||||||
--header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
|
--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) |' \
|
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}" \
|
"${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 "PRIVATE-TOKEN: ${GITLAB_TOKEN}" \
|
||||||
--header "Content-Type: application/json" \
|
--header "Content-Type: application/json" \
|
||||||
--data "$(jq -n --arg c "${UPDATED}" '{content:$c}')" \
|
--data "$(jq -n --arg c "${UPDATED}" '{content:$c}')" \
|
||||||
"${API_URL}/wikis/Asteria"
|
"${WIKI_URL}"
|
||||||
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"
|
|
||||||
else
|
else
|
||||||
echo "ERROR: GitLab API returned HTTP ${HTTP_CODE}"
|
echo "ERROR: GitLab API returned HTTP ${HTTP_CODE}"
|
||||||
cat /tmp/wiki.json
|
cat /tmp/wiki.json
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ set(SOURCES
|
|||||||
src/backend/formats/TxtReader.cpp
|
src/backend/formats/TxtReader.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(WIN32)
|
||||||
|
list(APPEND SOURCES src/asteria.rc)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Executable
|
# Executable
|
||||||
qt_add_executable(asteria-qt ${SOURCES})
|
qt_add_executable(asteria-qt ${SOURCES})
|
||||||
|
|
||||||
|
|||||||
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
@@ -5,4 +5,4 @@ Comment=Cross-platform book reader
|
|||||||
Exec=asteria-qt
|
Exec=asteria-qt
|
||||||
Icon=asteria-qt
|
Icon=asteria-qt
|
||||||
Categories=Office;Viewer;
|
Categories=Office;Viewer;
|
||||||
MimeType=application/epub+zip;text/plain;application/x-fictionbook+xml;
|
MimeType=text/plain;
|
||||||
|
Before Width: | Height: | Size: 29 KiB After Width: | Height: | Size: 34 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 502 KiB After Width: | Height: | Size: 538 KiB |
|
Before Width: | Height: | Size: 8.2 KiB After Width: | Height: | Size: 9.5 KiB |
|
After Width: | Height: | Size: 708 KiB |
|
Before Width: | Height: | Size: 134 KiB After Width: | Height: | Size: 1.0 MiB |
@@ -0,0 +1 @@
|
|||||||
|
IDI_ICON1 ICON DISCARDABLE "src/assets/asteria-qt.ico"
|
||||||