This repository has been archived by the owner on Jun 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
949b063
commit 1907dcd
Showing
3 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
src/syncthing | ||
src/syncthing.png | ||
src/manifest.json | ||
*.click |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Syncthing click package | ||
|
||
This is a small script and some resources to assemble the syncthing | ||
click package for ubports. | ||
|
||
## Buils package | ||
|
||
You need to have the click tool installed. Then simply run the build | ||
script with the desired version of syncthing: | ||
|
||
./build.sh '0.14.31' | ||
|
||
## Sources | ||
|
||
The sources for syncthing can be found here: https://github.com/syncthing/syncthing . | ||
The click package currently uses the prebuilt arm binaries. | ||
|
||
src: | ||
wget https://github.com/syncthing/syncthing/releases/download/v0.14.31/syncthing-linux-arm-v0.14.31.tar.gz | ||
wget https://github.com/syncthing/syncthing/raw/master/assets/logo-512.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
VERSION=$1 | ||
|
||
SRC_DIR="syncthing-linux-arm-v${VERSION}" | ||
SRC_URL="https://github.com/syncthing/syncthing/releases/download/v${VERSION}/${SRC_DIR}.tar.gz" | ||
PNG_URL="https://github.com/syncthing/syncthing/raw/master/assets/logo-512.png" | ||
|
||
wget -qO- $SRC_URL | tar xzv --transform "s/^${SRC_DIR}/src/" "${SRC_DIR}/syncthing" | ||
wget -O src/syncthing.png $PNG_URL | ||
|
||
sed -e "s/VERSION/${VERSION}/" src/manifest.json.in > src/manifest.json | ||
|
||
click build src |