convert templates to yaml (closes #1330)

This commit is contained in:
Izzy 2019-01-17 09:38:52 +00:00
parent 39b40bf93a
commit 9429e91f6b
3 changed files with 54 additions and 51 deletions

View file

@ -42,7 +42,7 @@ If the app is on GitHub, GitLab or Bitbucket, use `fdroid import`:
Alternatively, start the metadata file from scratch: Alternatively, start the metadata file from scratch:
cp templates/app-minimal metadata/app.id.txt cp templates/app-full metadata/app.id.yml
Now that the file is created, you need to fill up all the app information and Now that the file is created, you need to fill up all the app information and
add a working build recipe. add a working build recipe.

View file

@ -4,59 +4,62 @@
# #
# Fields that are commented out are optional # Fields that are commented out are optional
# #
# Single-line fields start right after the colon (without whitespace). # Single-line fields start right after the colon (with a whitespace).
Categories:(comma-separated) Categories:
License: - First
License: (identifier from https://spdx.org/licenses)
Web Site:(web link) # Website: (web link)
Source Code:(web link) SourceCode: (web link)
Issue Tracker:(web link) # IssueTracker: (web link)
# Changelog:(web link) # Changelog: (web link)
# Donate:(web link) # Donate: (web link)
# FlattrID:(number) # FlattrID: (number)
# LiberapayID:(number) # LiberapayID: (number)
# Bitcoin:(bitcoin address) # Bitcoin: (bitcoin address)
Summary:(one sentence, no more than 30-50 chars, no trailing punctuation) Summary: (one sentence, no more than 30-50 chars, no trailing punctuation)
Description: Description: |-
Description of what the app does, starting on a new line. It should be as Description of what the app does, starting on a new line. It should be as
objective as possible and wrapped at 80 chars (except links and list items). objective as possible and wrapped at 80 chars (except links and list
items).
A blank line means a line break, i.e. the end of a paragraph. A blank line means a line break, i.e. the end of a paragraph.
Bulleted lists can be used: Bulleted lists can be used:
* Item 1 * Item 1
* Item 2 * Item 2
Links can be added like this: Links can be added like this:
[https://github.com/org/project/raw/HEAD/res/raw/changelog.xml Changelog] [https://github.com/org/project/raw/HEAD/res/raw/changelog.xml Changelog]
Links to other apps too: [[some.other.app]] Links to other apps too: [[some.other.app]]
To close a multiline field, add a new line with only a dot. RepoType: (git, git-svn, svn, hg or bzr)
. Repo: (repo url, preferably https)
Repo Type:(git, git-svn, svn, hg or bzr)
Repo:(repo url, preferably https)
# At least one for new apps # At least one for new apps
Build:<version>,<version code> Builds:
commit=<tag/commit/rev> - versionName: 1.0
# [...] versionCode: 1
# commit: v1.0
subdir: app
# submodules: true
gradle:
- yes
# output: some.apk
# prebuild: sed -i -e
# For a complete list of possible flags, see the manual # For a complete list of possible flags, see the manual
# Maintainer Notes: # MaintainerNotes: |-
# Here go the notes to take into account for future updates, builds, etc. # Here go the notes to take into account for future updates, builds, etc.
# Will be published in the wiki if present. # Will be published in the wiki if present.
# .
Auto Update Mode:(see the manual)
Update Check Mode:(see the manual)
Current Version:(current version name)
Current Version Code:(current version code, i.e. number)
AutoUpdateMode: (see the manual)
UpdateCheckMode: (see the manual)
CurrentVersion: (current version name)
CurrentVersionCode: (current version code, i.e. number)

View file

@ -1,18 +1,18 @@
Categories: Categories:
-
License: License:
Web Site: Website:
Source Code: SourceCode:
Issue Tracker: IssueTracker:
Summary: Summary:
Description: Description: |-
.
Repo Type: RepoType:
Repo: Repo:
Build: Builds:
commit= - commit:
Update Check Mode: UpdateCheckMode: