stackunderflow-stackptr / stackptr_android

Android client for StackPtr
GNU General Public License v3.0
1 stars 0 forks source link

F-Droid build recipe #1

Open pserwylo opened 8 years ago

pserwylo commented 8 years ago

Hi there,

Watched your lightning talk at LCA2016. Thought I'd send an F-Droid build recipe your way. There is a few things you'd need to address before submitting to https://gitlab.com/fdroid/fdroiddata. You'll notice in the output below that it warns about "possible binaries". This is because there is no way to show that the fonts you are using are open source. Not quite sure about the binaries in the .png file though. If you are curious, there is usually people in #fdroid on freenode who can help with this.

FYI - if you are able to add git tags for each release in a consistent format (e.g. "v2.0.3") then F-Droid will periodically check for new updates and automatically build and release them (if you so choose).

Build recipe for F-Droid (requires description to be filled in):

Categories:Games
License:GPLv3
Web Site:
Source Code:https://github.com/stackunderflow-stackptr/stackptr_android
Issue Tracker:https://github.com/stackunderflow-stackptr/stackptr_android/issues
Changelog:https://github.com/stackunderflow-stackptr/stackptr_android/blob/HEAD/CHANGELOG.md

Auto Name:StackPtr
Summary:Location Sharing Client
Description:
Android client for StackPtr location sharing service.
.

Repo Type:git
Repo:https://github.com/stackunderflow-stackptr/stackptr_android

Build:2.0.4,23
    commit=0cd68530c54d80442f3ffcf429873c1f2b95e742
    subdir=app
    gradle=yes

Auto Update Mode:None
Update Check Mode:None
Current Version:2.0.4
Current Version Code:23

The following command: fdroid build -l com.stackunderflow.stackptr output (at least for me):

INFO: Building version 2.0.4 (23) of com.stackunderflow.stackptr
INFO: Getting source for revision 0cd68530c54d80442f3ffcf429873c1f2b95e742
INFO: Creating local.properties file at build/com.stackunderflow.stackptr/local.properties
INFO: Creating local.properties file at build/com.stackunderflow.stackptr/app/local.properties
INFO: Cleaning Gradle project...
INFO: Scanning source for common problems...
WARNING: Found possible binary at app/src/main/assets/static/fonts/glyphicons-halflings-regular.eot
WARNING: Found possible binary at app/src/main/assets/static/fonts/glyphicons-halflings-regular.woff
WARNING: Found possible binary at app/src/main/assets/static/fonts/glyphicons-halflings-regular.woff2
WARNING: Found possible binary at app/src/main/assets/static/fonts/glyphicons-halflings-regular.ttf
WARNING: Found possible binary at app/src/main/assets/static/css/images/spritesheet.png
WARNING: Found possible binary at app/src/main/assets/static/css/images/spritesheet-2x.png
INFO: Creating source tarball...
INFO: Building Gradle project...
INFO: Successfully built version 2.0.4 of com.stackunderflow.stackptr
INFO: success: com.stackunderflow.stackptr
INFO: Finished.
INFO: 1 builds succeeded

Let me know if you'd like any further info.

Cheers.

gm-stack commented 8 years ago

Awesome! Thanks so much for that!

glyphicons-halflings-regular* is from Bootstrap, spritesheet*.png is from leaflet-draw, both of which are MIT licensed, so there should be no licensing issues.

pserwylo commented 8 years ago

both of which are MIT licensed, so there should be no licensing issues.

Yup, I'd suspect as much. Unfortunately the fdroid tools are quite picky when looking at binaries, so you'll proably want to talk to krt or mvdan on #fdroid to ask what to do regrading these files.