Ingredients for a Syncthing app

I would like to do it, but not sure how. I have already found all necessary information to have the same file structure like the Transmission App:

Add the release PGP keys:

curl -s https://syncthing.net/release-key.txt | sudo apt-key add -

Add the “release” channel to your APT sources:

echo deb http://apt.syncthing.net/ syncthing release | sudo tee /etc/apt/sources.list.d/syncthing-release.list

Update and install syncthing:

sudo apt-get update
sudo apt-get install syncthing

A systemd service file is automatically created but could use some tweaking. I have added:
udisks-glue.service, user and group, Type=Notify. Exactly like Transmission, my personal contribution is Nice=7 to give it a low priority (but higher than Transmission, I use Nice=10 there).

[Unit]
Description=Syncthing - Open Source Continuous File Synchronization for %I
Documentation=http://docs.syncthing.net/
After=udisks-glue.service network.target
Requires=udisks-glue.service

[Service]
User=osmc
Group=osmc
Type=notify
Environment=STNORESTART=yes
ExecStart=/usr/bin/syncthing -no-browser -logflags=0
Nice=7
Restart=on-failure
SuccessExitStatus=2 3 4
RestartForceExitStatus=3 4

[Install]
WantedBy=multi-user.target

Is this all required information to create an “App” for OSMC? Basically it would simply be a script running the installation commands and copying the .service file to the right location. And somehow add it to the My OSMC addon.

You should compile the application from source if you want to include it in the App Store. That is the only way we can ensure that the builds are replicable.

Sam

Syncthing is selfupdating no need for repositories…

It is not suitable for the App Store in this situation then

Sam

Ah true, it is self updating. I can understand it is not suitable for the App Store.

What about Flexget? It uses a lot of other packages, I can imagine it is also not suitable since it would take a lot of work to maintain and keep it up to date. It is the most lightweight solution though, compared to Sickbeard and Couchpotato.

Flexget is pretty much ok, pyLoad & aria2 also