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.