Comments (4)
GitHub supports service hooks for OBS. We need to generate an authentication token to authorize our service calls and add a hook for OBS in our repository.
Open Build Service(OBS) is a distribution build system.
By enabling this hook, any Open Build Service instance (running version 2.5 or higher) will list
to push events. OBS Source Service will get execute for a defined package which will update
the sources in OBS and therefore rebuild automatically.
Install Notes
Prequire
You need to have a package using a source service to update the sources.
Check the OBS manual how to set this up.
Create an authentification token for your account using "osc" commandline tool:
osc token --create
You may already specify the package here
osc token --create PROJECT PACKAGE
That means the token can only be used for this package. It also means you do not have
to specify it in github.com. Just using the token is enough.
Enter your credentials at github.com
The token which got created (use "osc token" if you lost it)
optional: Modify the api url, if you do not use the openSUSE Build Service instance.
optional: Enter the project and package name in case you have a generic token.
Make sure the "Active" checkbox is ticked, and click "Update Settings".
For more details about OBS, go to http://www.openbuildservice.org
from tweetian.
Currently tweetian sources has Dickson's API key that is intended only for development:
https://github.com/veskuh/Tweetian/blob/sailfish-port/qml/tweetian-harmattan/Constant.qml#L66
We should not build & distribute .rpm with that key.
I have created key for Sailfish Tweetian and use it when I've made a publicly available .rpm, but I wouldn't want to include it in the openly available sources.
Having OBS doing builds would be nice, but I wouldn't want API key to be public so we would need to figure out if that is possible. I haven't checked Mer OBS lately, but one option would be to have the API key as separate .patch file in OBS packaging if access to files in packaging can be limited to us developers.
from tweetian.
We will definitely solve this problem. I brought up this topic on IRC and here are few suggestions which came up during discussion :
- Do not include API keys in rpm packages. Instead download the keys when people run Tweetian for the first time on their devices.
- Do no include API keys in Tweetian's rpm package. Instead create a separate rpm package (on local system) which contains the keys, upload it to our Tweetian repository on OBS and add this package as dependency of Tweetian in .spec file. A project which does similar stuff can be seen at https://build.merproject.org/package/files?package=droid-hal-device&project=home%3Atswindell%3Ahw%3Atilapia
from tweetian.
After a discussion on IRC, we have reached to the conclusion that it's good enough to make releases of Tweetian every 2-3 weeks on https://openrepos.net/
You can get Tweetian's latests RPMs from https://openrepos.net/content/veskuh/tweetian-sailfish-os
from tweetian.
Related Issues (20)
- Compose tweet page in landscape has initially wrong scroll position in Aaslakkajärvi
- Full landscape mode HOT 2
- Adapt to platform style transitions
- Twitter emoji support HOT 2
- Remove the 140 caracters limitation from DM HOT 2
- 0 new notifications - message is not useful
- tweetian notification shows "harbour-tweetian" as group header in notifications
- Feature request: Inline images/videos in list HOT 2
- Only one image is shown even if more are attached to tweet
- Timeline position lost due to refresh triggered by retweet HOT 1
- Tablet version refresh issue HOT 1
- Authentication broken HOT 5
- OnePlus X - the size of the icons HOT 4
- Sailfishos 2.0.2.43 compatibility issues HOT 4
- Images with full-lenght text not showing after Twitter update
- Use of Tweetian Sailfish OS UI idea HOT 1
- Account details page broken with SFOS 2.1.0.9 HOT 4
- Enhancement: A settings switch for showing images in the timeline HOT 1
- Profile page unusable on SailfishX
- Is it possible to skip the 140 character limit in tweets? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tweetian.