Giter VIP home page Giter VIP logo

cgeo-fdroid's Introduction

Configuration

In order to configure the two channels ("mainline" / "nightly"), you have to prepare two directories which should contains the file config.py. (Those directories and files will be automatically created for you at first launch of script fdroid-update.sh. However you have to set the password in the files to unlock the signing key.)

This image is intended to be used as a Jenkins executor. You may want to bind the /apk/repo directory to the host filesystem.

You need to have a directory containing:

  • keystore.jks file: which contains the repository signing key

Jenkins agent need some credentials to authenticate to the Jenkins server. Those can be defined using environment variable or files.

Environment:

  • JENKINS_NODE_NAME
  • JENKINS_NODE_SECRET

Or using a file:

  • JENKINS_NODE_NAME_FILE (Default: /srv/slave)
  • JENKINS_NODE_SECRET_FILE (Default: /srv/secret)

Then you can launch the container:

APK_REPO=/path/to/repos
CONFS=/path/to/confs
JENKINS_NODE_NAME=node-name
JENKINS_NODE_SECRET=node-secret
docker run -e JENKINS_NODE_NAME=$JENKINS_NODE_NAME -e JENKINS_NODE_SECRET=$JENKINS_NODE_SECRET -v $APK_REPO:/apk/repo -v $CONFS/confs:/srv cgeo/fdroid

Usage

Configure your Jenkins job to launch the script fdroid-update.sh.

fdroid-update.sh need one parameter representing the repo to update. It can be mainline or nightly.

Ex:

fdroid-update.sh mainline

cgeo-fdroid's People

Contributors

kumy avatar lineflyer avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tuxsignal

cgeo-fdroid's Issues

Switching between Nightly builds and releases

Testing bug fix

I just tested a feature in NB-2016-09-04, and wanted to go back to release 2016-08-27 for production use.

Here is a recap of what I did:

  • Downloaded standard version from Google Play
    • Used this for a while, and decided to go for the beta vesrion
  • Downloaded beta version from Google Play after signing up for beta
  • Reported bug about GeoKret search
  • Added F-Droid repositories for release and nigtlies
  • Downloaded NB-2016-09-04
    • To test patch
  • Tested patch in NB-2016-09-04
    • Patch verified OK
  • Tried to roll back to release 2016-08-27 from F-Droid manager
  • Encountered 'Unknown Error' in F-Droid manager
  • Uninstalled c:geo from F-Droid manager
  • Installed release 2016-08-27 from F-Droid manager

Expected result

All or most settings and data should survive the rollback

Actual result

Seemingly most settings survived.
Notably the lists of saved caches disappeared.

What to do next?

How can I restore theese lists?
Reentering them manually is a lot of tedious work.

Nightly not updated since 2023.04.16-NB-ba0042c

Last version reported in f-droid for the https://fdroid.cgeo.org/nightly repository is 2023.04.16-NB-ba0042c.

Disabling then re-enabling the repo, or deleting then re-adding the repo (like in #8 (comment)) didn't fix this issue.

To exclude an issue with my F-Droid client, I even installed a brand new client, added the nightly repository, and the last version for cgeo was also reported as 2023.04.16-NB-ba0042c in this client.

Can anyone else confirm this?

F-droid index fails when multiple NB per day

When there is multiple NB per day (NB, NB1, NB2...), all subsequent repository indexing fails cause of duplicate versionCode.

See <http://ci.cgeo.org/job/Publish%20FDroid%20-%20NIGHTLY/86/>

------------------------------------------
Started by upstream project "cgeo nightly" build number 360
originally caused by:
 Started by user Samuel Tardieu
Building remotely on fdroid (fdroid-signing-key) in workspace <http://ci.cgeo.org/job/Publish%20FDroid%20-%20NIGHTLY/ws/>
[Publish FDroid - NIGHTLY] $ /bin/sh -xe /tmp/hudson1869819810188561887.sh
+ /usr/local/bin/fdroid-update.sh nightly
I: Updating nightly repo
I: downloading cgeo-nightly from http://download.cgeo.org/cgeo-nightly.apk
I: apk version is 2016.11.14-NB1-e27d70e
I: downloading cgeo-calendar-nightly from http://download.cgeo.org/cgeo-calendar-nightly.apk
I: apk version is 1.5
I: Updating F-Droid index
INFO: Moving cgeo-nightly-2016.11.12-NB-331be7b.apk to archive
CRITICAL: duplicate versions: 'cgeo-nightly-2016.11.14-NB-38c4deb.apk' - 'cgeo-nightly-2016.11.14-NB1-e27d70e.apk'
Build step 'Execute shell' marked build as failure

Until now I've manually fixed the repository, by removing precedent NB from the same day.

Deploy release is broken

CI job crash with error

00:17.538  CRITICAL: Unknown exception found!
00:17.540  Traceback (most recent call last):
00:17.540    File "/usr/bin/fdroid", line 164, in <module>
00:17.540      main()
00:17.540    File "/usr/bin/fdroid", line 138, in main
00:17.540      mod.main()
00:17.540    File "/usr/lib/python3/dist-packages/fdroidserver/update.py", line 1950, in main
00:17.540      archapks, cc = process_apks(apkcache, repodirs[1], knownapks, options.use_date_from_apk)
00:17.540    File "/usr/lib/python3/dist-packages/fdroidserver/update.py", line 1445, in process_apks
00:17.540      use_date_from_apk, ada, True)
00:17.540    File "/usr/lib/python3/dist-packages/fdroidserver/update.py", line 1318, in process_apk
00:17.540      apk = scan_apk(apkfile)
00:17.540    File "/usr/lib/python3/dist-packages/fdroidserver/update.py", line 1053, in scan_apk
00:17.540      scan_apk_androguard(apk, apk_file)
00:17.540    File "/usr/lib/python3/dist-packages/fdroidserver/update.py", line 1270, in scan_apk_androguard
00:17.540      feature = str(item.attrib['{' + xml.nsmap['android'] + '}name'])
00:17.540    File "src/lxml/etree.pyx", line 2457, in lxml.etree._Attrib.__getitem__
00:17.540  KeyError: '{http://schemas.android.com/apk/res/android}name'

http://ci.cgeo.org/view/Fdroid/job/Publish%20FDroid%20-%20RELEASE/35/console

Blocks: cgeo/cgeo#6956

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.