There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.
TypeScript appcrdteditorelectronknowledge-basemarkdownmironotesnotionnotion-alternativerustrust-langrust-languagetabletableviewwhiteboardwikiworkspace
ci: Auto-update AppStream on release (#11820)
Vladimir Romashchenko9373006b9fb9
diff --git a/packages/frontend/apps/electron/resources/affine.metainfo.xml b/packages/frontend/apps/electron/resources/affine.metainfo.xmlindex a1d5f812b8..35f940b0ff 100644--- a/packages/frontend/apps/electron/resources/affine.metainfo.xml+++ b/packages/frontend/apps/electron/resources/affine.metainfo.xml@@ -1,20 +1,19 @@-<?xml version="1.0" encoding="UTF-8"?>+<?xml version="1.0" encoding="UTF-8" standalone="yes"?><component type="desktop-application"><id>affine</id>-<name>AFFiNE</name><summary>Productivity and note-taking app</summary>-<metadata_license>CC0-1.0</metadata_license><project_license>MIT AND LicenseRef-proprietary=https://github.com/toeverything/AFFiNE/blob/canary/LICENSE</project_license>-<url type="homepage">https://affine.pro</url><url type="bugtracker">https://github.com/toeverything/AFFiNE/issues</url><url type="help">https://docs.affine.pro/docs</url><url type="vcs-browser">https://github.com/toeverything/AFFiNE</url><url type="contribute">https://docs.affine.pro/docs/contributing</url>-- <content_rating type="oars-1.1"></content_rating>+ <developer id="pro.affine.app">+ <name>affine</name>+ </developer>+ <content_rating type="oars-1.1"/><categories><category>Office</category></categories>@@ -25,7 +24,6 @@<branding><color type="primary">#1e96eb</color></branding>-<recommends><display_length compare="ge">800</display_length><internet>always</internet>@@ -39,35 +37,35 @@<control>tablet</control><control>touch</control></supports>-<description><p>Write, Draw, Plan, All at Once. With AI.</p><p>AFFiNE is a workspace with fully merged docs, whiteboards and databases. Get more things done, your creativity isn’t monotone.</p><p>Features</p>- <ul>- <li>Write your way to better productivity. Build up your content like blocks and let your ideas run wild.</li>- <li>Draw and visualise with ease and creativity. Visualise your creativity with others. No constraints, limited only by your imagination.</li>- <li>Plan, track, and collaborate efficiently. Stay on top of your workload and achieve more in less time.</li>- <li>AI partner helps you better write, draw and plan. Let you think bigger, create faster, work smarter in anytime, anywhere</li>- </ul>+ <ul>+ <li>Write your way to better productivity. Build up your content like blocks and let your ideas run wild.</li>+ <li>Draw and visualise with ease and creativity. Visualise your creativity with others. No constraints, limited only by your imagination.</li>+ <li>Plan, track, and collaborate efficiently. Stay on top of your workload and achieve more in less time.</li>+ <li>AI partner helps you better write, draw and plan. Let you think bigger, create faster, work smarter in anytime, anywhere</li>+ </ul></description>-- <launchable type="desktop-id">pro.affine.AFFiNE.desktop</launchable>+ <launchable type="desktop-id">affine.desktop</launchable><screenshots><screenshot type="default"><image>https://affine.pro/overview/Write.jpg</image>+ <caption>Document writing interface with block-based editing</caption></screenshot><screenshot><image>https://affine.pro/overview/Draw.jpg</image>+ <caption>Whiteboard drawing and visualization capabilities</caption></screenshot><screenshot><image>https://affine.pro/overview/Plan.jpg</image>+ <caption>Project planning and task management view</caption></screenshot></screenshots>-<releases>- <release version="0.21.2" date="2025-04-11">- <url>https://github.com/toeverything/AFFiNE/releases/tag/v0.21.2</url>+ <release version="0.21.3" date="2025-04-18">+ <url>https://github.com/toeverything/AFFiNE/releases/tag/v0.21.3</url></release></releases></component>diff --git a/scripts/set-version.sh b/scripts/set-version.shindex 389c2ee74f..057130bf4f 100755--- a/scripts/set-version.sh+++ b/scripts/set-version.sh@@ -1,4 +1,5 @@#!/bin/bash+set -efor DIR_ITEM in $(yarn workspaces list --json | jq -r '.location'); doDIR=$(echo -n "$DIR_ITEM" | tr -d '\r\n')@@ -36,8 +37,46 @@ update_app_version_in_helm_charts() {rm "$file_path".bak}+update_app_stream_version() {+ local file_path=$1+ local new_version=$2++ # Check if file exists+ if [ ! -f "$file_path" ]; then+ echo "Error: File does not exist at $file_path."+ return 1+ fi++ echo "Updating $file_path with appVersion $new_version"+ # version is at+ # <releases>+ # <release version="0.21.0" date="yyyy-MM-dd">+ # <url>https://github.com/toeverything/AFFiNE/releases/tag/v0.21.0</url>+ # </release>+ # </releases>+ # We need to update the version and the url+ current_date=$(date +"%Y-%m-%d")++ # Use sed to update the version, date, and URL in the releases section+ sed -i.bak -E "s|<release version=\"[^\"]*\" date=\"[^\"]*\">|<release version=\"$new_version\" date=\"$current_date\">|" "$file_path"+ sed -i.bak -E "s|<url>https://github.com/toeverything/AFFiNE/releases/tag/v[^<]*</url>|<url>https://github.com/toeverything/AFFiNE/releases/tag/v$new_version</url>|" "$file_path"++ if [ $? -ne 0 ]; then+ echo "Error: Failed to update the appVersion."+ return 1+ fi++ echo "appVersion in $file_path updated to $new_version"++ rm "$file_path".bak+}+new_version=$1update_app_version_in_helm_charts ".github/helm/affine/Chart.yaml" "$new_version"update_app_version_in_helm_charts ".github/helm/affine/charts/graphql/Chart.yaml" "$new_version"update_app_version_in_helm_charts ".github/helm/affine/charts/sync/Chart.yaml" "$new_version"+update_app_version_in_helm_charts ".github/helm/affine/charts/renderer/Chart.yaml" "$new_version"+update_app_version_in_helm_charts ".github/helm/affine/charts/doc/Chart.yaml" "$new_version"++update_app_stream_version "packages/frontend/apps/electron/resources/affine.metainfo.xml" "$new_version"\ No newline at end of file