Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
add resources from manual build
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeroPointEnergy committed Jul 1, 2017
1 parent b39d75e commit 57c3227
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Syncthing.apparmor
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"policy_groups": [],
"policy_version": 1.3,
"template": "unconfined"
}
8 changes: 8 additions & 0 deletions src/Syncthing.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Syncthing
Comment="Syncthing is a continuous file synchronization program"
Type=Application
Icon=syncthing.png
Exec=syncthing.sh
Terminal=false
X-Ubuntu-Touch=true
15 changes: 15 additions & 0 deletions src/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "syncthing.zeropointenergy",
"description": "Syncthing is a continuous file synchronization program",
"architecture": "armhf",
"title": "Syncthing",
"hooks": {
"Syncthing": {
"apparmor": "Syncthing.apparmor",
"desktop": "Syncthing.desktop"
}
},
"version": "0.14.31",
"maintainer": "Jakob Borg",
"framework" : "ubuntu-sdk-15.04.6"
}
12 changes: 12 additions & 0 deletions src/syncthing.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

# make sure syncthing gets started if it is not already
# running when starting the webui
pgrep -u $USER -x syncthing > /dev/null || syncthing -no-browser &

# wait until the web ui responds
until $(wget -O /dev/null -q http://127.0.0.1:8384); do sleep 1; done

# show the web ui in the webapp-container
webapp-container --webappUrlPatterns=https?://127.0.0.1:8384/* http://127.0.0.1:8384/ %u

0 comments on commit 57c3227

Please sign in to comment.