Skip to content

Commit

Permalink
update spk, add debian-no-avahi option, set alpine no-avahi as default
Browse files Browse the repository at this point in the history
  • Loading branch information
oznu committed Apr 11, 2020
1 parent 40432cd commit aaf5c3b
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 16 deletions.
Binary file modified PACKAGE_ICON.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified PACKAGE_ICON_256.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
[![Travis](https://img.shields.io/travis/oznu/homebridge-syno-spk.svg)](https://travis-ci.org/oznu/homebridge-syno-spk) [![GitHub release](https://img.shields.io/github/release/oznu/homebridge-syno-spk.svg)](https://github.com/oznu/homebridge-syno-spk/releases/latest)
<p align="center">
<img width="400px" src="https://user-images.githubusercontent.com/3979615/79035227-bdd5be00-7bff-11ea-900f-2fef01bba4ba.png">
</p>

![oznu/homebridge-homekit-logo](PACKAGE_ICON.PNG)
[![Travis](https://img.shields.io/travis/oznu/homebridge-syno-spk.svg)](https://travis-ci.org/oznu/homebridge-syno-spk)
[![GitHub release](https://img.shields.io/github/release/oznu/homebridge-syno-spk.svg)](https://github.com/oznu/homebridge-syno-spk/releases/latest)

# Synology Package for Homebridge Docker

Expand Down
18 changes: 11 additions & 7 deletions WIZARD_UIFILES/install_uifile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,20 @@
"items": [{
"type": "singleselect",
"subitems": [{
"key": "homebridge_pkgwizard_image_type_latest",
"desc": "Default Image (Alpine Linux)",
"defaultValue": true
}, {
"key": "homebridge_pkgwizard_image_type_no_avahi",
"desc": "No Avahi Image (Alpine Linux). Select this if you're having trouble discovering Homebridge in iOS.",
"desc": "Alpine Linux (without Avahi)",
"defaultValue": true
},{
"key": "homebridge_pkgwizard_image_type_latest",
"desc": "Alpine Linux",
"defaultValue": false
}, {
},{
"key": "homebridge_pkgwizard_image_type_debian_no_avahi",
"desc": "Debian Stretch (without Avahi)",
"defaultValue": false
},{
"key": "homebridge_pkgwizard_image_type_debian",
"desc": "Debian Based Image (Debian Stretch)",
"desc": "Debian Stretch",
"defaultValue": false
}]
}]
Expand Down
18 changes: 11 additions & 7 deletions WIZARD_UIFILES/upgrade_uifile
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
"items": [{
"type": "singleselect",
"subitems": [{
"key": "homebridge_pkgwizard_image_type_latest",
"desc": "Default Image (Alpine Linux)",
"defaultValue": true
}, {
"key": "homebridge_pkgwizard_image_type_no_avahi",
"desc": "No Avahi Image (Alpine Linux). Select this if you're having trouble discovering Homebridge in iOS.",
"desc": "Alpine Linux (without Avahi)",
"defaultValue": true
},{
"key": "homebridge_pkgwizard_image_type_latest",
"desc": "Alpine Linux",
"defaultValue": false
},{
"key": "homebridge_pkgwizard_image_type_debian_no_avahi",
"desc": "Debian Stretch (without Avahi)",
"defaultValue": false
}, {
},{
"key": "homebridge_pkgwizard_image_type_debian",
"desc": "Debian Based Image (Debian Stretch)",
"desc": "Debian Stretch",
"defaultValue": false
}]
}]
Expand Down
Binary file modified package/ui/images/icon_256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions scripts/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ if [ "$SYNOPKG_PKG_STATUS" = "INSTALL" ]; then
echo "HOMEBRIDGE_DOCKER_TAG=no-avahi" >> "$SYNOPKG_PKGDEST/.env"
elif [ "$homebridge_pkgwizard_image_type_debian" = "true" ]; then
echo "HOMEBRIDGE_DOCKER_TAG=debian" >> "$SYNOPKG_PKGDEST/.env"
elif [ "$homebridge_pkgwizard_image_type_debian_no_avahi" = "true" ]; then
echo "HOMEBRIDGE_DOCKER_TAG=debian-no-avahi" >> "$SYNOPKG_PKGDEST/.env"
else
echo "HOMEBRIDGE_DOCKER_TAG=latest" >> "$SYNOPKG_PKGDEST/.env"
fi
Expand Down
4 changes: 4 additions & 0 deletions scripts/postupgrade
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ if grep -q "HOMEBRIDGE_DOCKER_TAG" "$SYNOPKG_PKGDEST/.env"; then
sed -i 's/HOMEBRIDGE_DOCKER_TAG=.*/HOMEBRIDGE_DOCKER_TAG=no-avahi/' "$SYNOPKG_PKGDEST/.env"
elif [ "$homebridge_pkgwizard_image_type_debian" = "true" ]; then
sed -i 's/HOMEBRIDGE_DOCKER_TAG=.*/HOMEBRIDGE_DOCKER_TAG=debian/' "$SYNOPKG_PKGDEST/.env"
elif [ "$homebridge_pkgwizard_image_type_debian_no_avahi" = "true" ]; then
sed -i 's/HOMEBRIDGE_DOCKER_TAG=.*/HOMEBRIDGE_DOCKER_TAG=debian-no-avahi/' "$SYNOPKG_PKGDEST/.env"
else
sed -i 's/HOMEBRIDGE_DOCKER_TAG=.*/HOMEBRIDGE_DOCKER_TAG=latest/' "$SYNOPKG_PKGDEST/.env"
fi
Expand All @@ -20,6 +22,8 @@ else
echo "HOMEBRIDGE_DOCKER_TAG=no-avahi" >> "$SYNOPKG_PKGDEST/.env"
elif [ "$homebridge_pkgwizard_image_type_debian" = "true" ]; then
echo "HOMEBRIDGE_DOCKER_TAG=debian" >> "$SYNOPKG_PKGDEST/.env"
elif [ "$homebridge_pkgwizard_image_type_debian_no_avahi" = "true" ]; then
echo "HOMEBRIDGE_DOCKER_TAG=debian-no-avahi" >> "$SYNOPKG_PKGDEST/.env"
else
echo "HOMEBRIDGE_DOCKER_TAG=latest" >> "$SYNOPKG_PKGDEST/.env"
fi
Expand Down

0 comments on commit aaf5c3b

Please sign in to comment.