Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build: Add AppStream meta data #1642

Merged
merged 24 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from 13 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Back In Time

Version 1.4.4-dev (development of upcoming release)
* Build: Add AppStream meta data
* Build: PyLint unit test is skipped if PyLint isn't installed, but will always run on TravisCI (#1634)
* Feature: Support rsync '--one-file-system' in Expert Options (#1598)
* Feature: "*-dev" version strings contain last commit hash (#1637)
Expand Down
1 change: 1 addition & 0 deletions qt/backintime-qt-root.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Comment=Simple backup system
Comment[de]=Ein simples Backup-Programm inspiriert von »Time Machine«, »TimeVault« und dem »flyback project«.
Comment[sl]=Enostaven sistem ustvarjanja varnostnih kopij
Keywords=automatic;snapshot;restore;rsync;root;
X-AppStream-Ignore=true
buhtz marked this conversation as resolved.
Show resolved Hide resolved
8 changes: 5 additions & 3 deletions qt/configure
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ printf "clean:\n" >> ${MAKEFILE}
printf "\trm -f po/*.mo\n" >> ${MAKEFILE}
printf "\trm -f man/C/*.gz\n\n" >> ${MAKEFILE}

#create install and uninstall target
# Create install and uninstall target
printf "install:\n" >> ${MAKEFILE}

# Migration
Expand Down Expand Up @@ -172,6 +172,9 @@ addComment "application"
addInstallDir "/bin"
addInstallFile "backintime-qt" "/bin" "755"
addInstallFile "backintime-qt_polkit" "/bin" "755"
printf "\tinstall -d /usr/share/metainfo\n" >> ${MAKEFILE}
addInstallFile "io.github.bit_team.back_in_time.gui.metainfo.xml" "/share/metainfo"
# printf "\tinstall --mode=644 io.github.bit_team.back_in_time.gui.metainfo.xml /usr/share/metainfo\n" >> ${MAKEFILE}
addNewline

addComment "dbus service"
Expand Down Expand Up @@ -230,11 +233,10 @@ printf "compress:\n" >> ${MAKEFILE}
printf "\t#man pages\n" >> ${MAKEFILE}
printf "\tfor i in \$\$(ls -1 man/C/); do case \$\$i in *.gz|*~) continue;; *) gzip -n --best -c man/C/\$\$i > man/C/\$\${i}.gz;; esac; done\n\n" >> ${MAKEFILE}

#uninstall
# Uninstall
printf "uninstall: uninstall_files uninstall_dirs\n\n" >> ${MAKEFILE}
printf "uninstall_files:\n" >> ${MAKEFILE}
cat ${UNINSTALL_FILES} >> ${MAKEFILE}

printf "uninstall_dirs:\n" >> ${MAKEFILE}
cat ${UNINSTALL_DIRS} >> ${MAKEFILE}

Expand Down
88 changes: 88 additions & 0 deletions qt/io.github.bit_team.back_in_time.gui.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Docu:
https://www.freedesktop.org/software/appstream/docs/chap-Metadata.html

Validate (lint) on shell:
appstreamcli validate *xml
-->


<component type="desktop-application">
<id>io.github.bit_team.back_in_time.gui</id>
<name>Back In Time</name>
<summary>Backup tool for GNU Linux desktop using rsync with its hard-links feature to save storage space</summary>

<metadata_license>FSFAP</metadata_license>
<project_license>GPL-2.0</project_license>

<description>
<p>
It is an easy-to-use backup tool for files and folders. It runs on GNU
Linux and provides a command line tool "backintime" and a Qt5 GUI
"backintime-qt". It uses "rsync" in the back to take manual or scheduled
snapshots and stores them locally or remotely through SSH. Each snapshot
is its own folder with copies of the original files, but unchanged files
buhtz marked this conversation as resolved.
Show resolved Hide resolved
are hard-linked between snapshots to save space. It was inspired by
"FlyBack".
</p>
<p>
You only need to specify 3 things:
</p>
<ol>
<li>What folders to back up.</li>
<li>Where to save snapshots.</li>
<li>The backup frequency (manual, every hour, every day, every month).</li>
</ol>
</description>

<icon type="stock">document-save</icon>
buhtz marked this conversation as resolved.
Show resolved Hide resolved

<categories>
<!-- https://specifications.freedesktop.org/menu-spec/latest/apa.html -->
<category>System</category>
<category>Archiving</category>
</categories>

<keywords>
<keyword translate="no">Backup</keyword>
<keyword translate="no">Rsync</keyword>
<keyword translate="no">GUI</keyword>
</keywords>

<url type="homepage">https://github.com/bit-team/backintime</url>
<url type="bugtracker">https://github.com/bit-team/backintime/issues</url>
<url type="faq">https://github.com/bit-team/backintime/blob/dev/FAQ.md</url>
<url type="help">https://backintime.readthedocs.io/</url>
<url type="translate">https://translate.codeberg.org/engage/backintime</url>
<url type="contact">https://mail.python.org/mailman3/lists/bit-dev.python.org</url>
<url type="vcs-browser">https://github.com/bit-team/backintime</url>
<url type="contribute">https://github.com/bit-team/backintime/blob/dev/CONTRIBUTING.md</url>

<launchable type="desktop-id">backintime-qt.desktop</launchable>
buhtz marked this conversation as resolved.
Show resolved Hide resolved

<!--
- 16:9 ratio
- PNG format
- Default desktop theme
- Include windows only (incl. boders) and use alpha mask for
rounded window corners
- Without mouse pointer
- Add caption (without fullstop)
-->
<screenshots>
<screenshot type="default">
<caption>Main window</caption>
<image>https://translate.codeberg.org/media/screenshots/bit_16to9_960x540_mainwindow.png</image>
</screenshot>
<screenshot>
<caption>Setup of SSH snapshot profile</caption>
<image>https://translate.codeberg.org/media/screenshots/bit_16to9_1280x720_general_ssh.png</image>
</screenshot>
</screenshots>

<!-- https://hughsie.github.io/oars/generate.html -->
<content_rating type="oars-1.0" />

<update_contact>bit-dev@python.org</update_contact>
</component>